emmi-Firmware]] ab [[Firmware 1.50.6.lemmi]].
== Script Dateien ==
=== /sbin/lemmi-setup ===
Dieses Script scanned die Datei '''/[[/var|var]]/[[/var/etc|etc]]/le...
entfernt (für unsere Windows-Freunde).
Wird das Script [[lemmi-setup]] mit dem Parameter 'setup' aufgeru... geschrieben.
Dieses geschieht z.B. durch das Boot-Script [[/etc/rc]].
* Weitere Details: [[/sbin/lemmi-se
|Lemmis Firmware]] unterstützt 7 Hooks:
=== Boot-Script rc.local ===
Im Boot-Script '[[/etc/rc]]' sind vier Hooks für eigene Modifikationen eingebaut:
* Kurz n... Existiert diese Datei, dann wird sie als normales Script aufgerufen.
* Am Ende von [[/etc/rc]] wird die... at.
So kann z.B. durch Verwendung des beigelegten Scriptes [[check-usb-settings]]
die [[lemmi-settings.txt
urde das Programm [[/sbin/mount.smbfs]] durch ein Script ausgetauscht. Dieses Script 'biegt' dann den SMB-mount zu einem NFS-mount um. Es existieren nun zwei Verf
* die Option hinter [http://www.imagemagick.org/script/command-line-options.php?#crop -crop] gibt an, wa... te nach unten.
* '''[http://www.imagemagick.org/script/command-line-options.php?#repage +repage]''' mit ... rde mit der Option '''[http://www.imagemagick.org/script/command-line-options.php?#gravity -gravity]''' un... gentlich bei der automatischen Bildbearbeitung in Scripten sehr gut gebrauchen.
* ein '''<''' direkt hinte
w commands pertinent to string. See also <a href="scripts/threadsafe">threadsafe</a></td></tr>
<tr><td>•... tart stopwatch. Ctrl-d to stop. See also <a href="scripts/stopwatch/">sw</a></td></tr>
<tr><td>•</td><td... td class="nw">renice 19 -p $$</td><td>Make shell (script) low priority. Use for non interactive tasks</td>... lrt</td><td>List files by date. See also <a href="scripts/newest">newest</a> and <a href="scripts/find_mm_
Function Complexities]]
A quick guide to writing scripts using the bash shell:
[[http://pegasus.rutgers.e... om/linux/shell_programming.html]]
=== bash shell script: ===
wichtig, dass am Anfang:
<code>
#!/bin/bas... /code>
Datei zeile für zeile lesen:
<code bash>
script <datei
while [ true ]
do
read X #read
exit $E_NOARGS
# Returns 65 as exit status of script (error code).
fi
filename=$1
if [ ! -f "$file...
# May substitute 'less' if desired.
exit $? # Script returns exit status of pipe.
# Actually "exit $?" is unnecessary, as the script will, in any case,
#+ return the exit status of t
Shell ======
Quelle((http://www.softpanorama.org/Scripting/Shellorama/Reference/string_operations_in_shel... guments are given. This is shown in the following script:
#!/bin/bash
export INFILE=${1-"infile"}
export... o a variety of things. For example, the following script changes the extension of all .html files to .htm.... on-interactive shell, this will abort the current script. In an interactive shell, this will just print th