Manual Reference Pages  - execinput (1)

NAME

execinput - read commands and execute them one line at a time

CONTENTS

Synopsis
Description
Options
Examples
See Also
License
Copyright
Authors

SYNOPSIS

execinput [options...]

DESCRIPTION

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/

OPTIONS

-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.)

EXAMPLES

% 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.

SEE ALSO

extract(1)

LICENSE

GNU General Public License 2

COPYRIGHT

Copyright (C) 2002, 2006 David Mathog and Caltech.

AUTHORS

David Mathog, Biology Division, Caltech <mathog@caltech.edu>


drm_tools execinput (1) 1.0.1 OCT 23 2006
Generated by manServer 1.07 from /usr/common/man/man1/execinput.1 using man macros.