serdo.8 (1842B) download
1.TH serdo 1
2.SH NAME
3serdo \- run commands serially
4.SH SYNOPSIS
5.B serdo
6.I [-c]
7.I filename
8
9.SH DESCRIPTION
10.B serdo
11will open the file given by the command line argument and serially
12execute all the commands in it. If a command fails, the whole batch job
13is aborted (unless -c is given as first paramter on the serdo command
14line).
15
16serdo understands the \fBcd\fR, \fBexport\fR and \fBulimit\fR (set mode
17only) sh(1) built-ins (no loops, no globbiung, no ~user expansion, no
18$FOO expansion, no backticks).
19
20serdo is very limited by design, but it is nice to have if you just want
21to run a few ifconfig, ip, route commands in sequence. serdo will
22return the exit code of the last command it ran, 0 if none were given.
23
24If no file name is given as command line argument, but a file called
25"script" exists in the current working directory, serdo will execute
26that file. This saves a few inodes in a typical /etc/minit tree.
27
28.SH SYNTAX
29
30.B serdo scripts are Unix style text files with a list of commands, one
31per line. Usual shell script rules do not apply. No if, while,
32semicolons, no & to background jobs.
33
34Special commands that serdo does understand are cd, export, and ulimit.
35Spaces at the beginning of each line are ignored. If a line starts with
36a '#', it is considered a comment and ignored. Command line arguments
37that contain spaces can be grouped using single or double quotes.
38Characters can be escaped by putting a backslash ('\\') before them.
39
40Usually script execution is aborted if any command has a non-zero return
41value. This can be overridden by putting a '-' character in front of
42a command in the script file (or globally by passing the -c command line
43argument to serdo).
44
45.SH AUTHOR
46minit was written by Felix von Leitner and can be downloaded from
47.I http://www.fefe.de/minit/
48
49.SH "SEE ALSO"
50msvc(8), sh(1)