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