execute a virtual console-specific command
utility executes one or more commands
depending on which terminal (or virtual console) it is being run on. This is
useful, at least for me, in that it allows the same commands to be run on the
same virtual consoles day after day.
- Specify the definition file to read.
- Display program usage information and exit.
- Keep going even if one or more commands end with a non-zero exit
- Specify the terminal (or virtual console) to execute commands for instead
of the current one.
- Display program version information and exit.
- Do not ask for confirmation when running in an X session without a
utility exits 0 on success,
and >0 if an error occurs.
variable is set,
will use it instead of the output of
to determine the command to run. If the
variable is set and the
command-line option is supplied,
will skip the confirmation question and
just execute the commands.
utility reads the commands to be
executed from either the /usr/local/etc/vcr
or, if present, the ~/.vcr
This file's format is quite simple: the first whitespace-delimited field is
the name of the terminal, the rest of the line is the command to execute. If
the file contains more than one line for the same terminal, the commands are
executed in succession in the order they are found in the file.
Well, just do it:
A sample ~/.vcr
/dev/ttyv4 screen -DR
/dev/ttyp1 fetchmail -ve25
This file contains definitions for single commands to be executed on
, and two commands to be executed
utility was written by