execinput - read commands and execute them one line at a time
Synopsis
Description
Options
Examples
See Also
License
Copyright
Authors
execinput [options...]
execinput reads a series of commands from stdin or a text file and executes each line as a command. execinput may be obtained as part of the drm_tools package from: http://sourceforge.net/projects/drmtools/
-c <string> Any line which begins with a character contained in <string> is a comment and is not executed. (Default is to execute all input lines with 1 or more characters.)
-h -help --help -? --?? Print the help message. (Default - do not print help message.)
-ef Exit on first failure. ( Default - continue processing after a command failure).
-i Emit version, copyright, license and contact information.( Default - do not emit information.)
-in <input_file> Read input from the specified file. (Default is to read from stdin.)
-loge Log processing to stderr. The output format is:
STATUS:XXXXXXXX: command
where: STATUS is either success or failure; XXXXXXXX is the hexadecimal exit value returned by the subprocess; and command is the text line which was executed. (Default is no logging.)
-logf <log_file> Log processing to the specified file. (Default is not to log processing.)
-wl <widest_line> Widest input line in characters. (Default <widest_line> is 16000.)
% execinput -h List the the command line options.
% echo ’rm foobar’ | execinput Run the command rm foobar
% execinput -in cmdfile -ef -c ’#!’ -logf processed.log Read commands from cmdfile , treat lines beginning with # or ! as a comment, abort if any command fails, and log status messages to processed.log.
% find . | \\
extract -if ’/’ -ifonly -dl ’/’ -mt -cols ’mv [1,] [1,-2][cu:-1,]’ |\\execinput Change the names of all files in or below this directory to upper case.
extract(1)
GNU General Public License 2
Copyright (C) 2002, 2006 David Mathog and Caltech.
David Mathog, Biology Division, Caltech <mathog@caltech.edu>
drm_tools | execinput (1) | 1.0.1 OCT 23 2006 |