|-f||Specify the definition file to read.|
|-h||Display program usage information and exit.|
|-k||Keep going even if one or more commands end with a non-zero exit code.|
|-t||Specify the terminal (or virtual console) to execute commands for instead of the current one.|
|-V||Display program version information and exit.|
|-X||Do not ask for confirmation when running in an X session without a terminal.|
If the TTY variable is set, vcr will use it instead of the output of vcrtty(1) or tty(1) to determine the command to run. If the DISPLAY variable is set and the -X command-line option is supplied, vcr will skip the confirmation question and just execute the commands.
The vcr utility reads the commands to be executed from either the /usr/local/etc/vcr or, if present, the ~/.vcr definition file. This files 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 file:
/dev/ttyv2 centerim --ascii
/dev/ttyv4 screen -DR
/dev/ttyp1 fetchmail -ve200
/dev/ttyp1 fetchmail -ve25 -Nd120
This file contains definitions for single commands to be executed on /dev/ttyv2, /dev/ttyv4 and /dev/ttyv9, and two commands to be executed on /dev/ttyp1.
The vcr utility was written by
.An Peter Pentchev in 2009.
.An Peter Penchev <firstname.lastname@example.org>