cron allows users and administrators to run unattended jobs at any time. Although this document provides examples, you should refer to your UNIX documentation for details specific to your environment.
On older versions of UNIX (pre-System V or Berkeley), cron was only accessible to the system administrator with root or superuser capabilities. If you are using a newer version of UNIX, you should have access to cron. If not, consult with the system administrator.
To run TERM as a background application using cron, do the following:
- Set the PATH environment variable to include the directory where the TERM executable is installed, normally /usr/bin.
- Set the TERM environment variable to the correct terminal emulation.
- Set the HOME environment variable to your home directory. This is normally done by default.
- Export the above three environment variables.
- Have CRON run the shell script in background mode as follows:
term -q &
You must use the -q option and the ampersand &. If you do not use the -q option, you will see multiple copies of the error, “EOF error on console”.To have TERM run a TSL script when the system is rebooted, you must have a shell in the /etc/rc2.d directory that invokes TERM.
This entry was posted
on Thursday, May 10th, 2007 at 8:27 am and is filed under TERM.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.