GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VCR(1) FreeBSD General Commands Manual VCR(1)

vcr
execute a virtual console-specific command

vcr [-kX] [-f filename] [-t tty]

vcr [-h | -V]

The vcr 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.

Options:

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 code.
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 terminal.

The vcr utility exits 0 on success, and >0 if an error occurs.

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 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:

vcr

A sample ~/.vcr file:

/dev/ttyv2 centerim --ascii
/dev/ttyv4 screen -DR
/dev/ttyp1 fetchmail -ve200
/dev/ttyp1 fetchmail -ve25 -Nd120
/dev/ttyv9 mutt

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.

tty(1), vcrtty(1)

The vcr utility was written by Peter Pentchev in 2009.

Peter Penchev ⟨roam@ringlet.net⟩
March 2, 2011 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.