z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Creating a crontab entry

z/OS UNIX System Services Planning
GA32-0884-00

You can use cron to run the UUCP daemons on a fixed schedule. For example, if you want to run the UUCP daemons every Monday through Friday at 7:30 p.m., you would:
  1. Log on as UUCP or su to the UUCP user ID
  2. Enter the following echo command to create a working copy of the desired crontab entry:
    echo '30 19 * * 1-5 /usr/lib/uucp/uucico; /usr/lib/uucp/uuxqt;' >tfile
    where
    • 0 means zero minutes
    • 19:30 means 7:30 p.m.
    • * means no selected day of the month
    • * means no selected month of the year
    • 1-5 means Monday through Friday
    • /usr/lib/uucp/uucico; /usr/lib/uucp/uuxqt; are the commands to be run
    • >tfile directs the output to a temporary file
  3. Enter the crontab command to activate your request.
    crontab tfile
  4. To display your current crontab entries, enter the following command:
    crontab -l

Tip: Do not issue the crontab command without any options. If you do, the system will erase your current crontab entries and accept new crontab entries from the terminal. If you accidentally enter crontab without any options, end it with the INTERRUPT key, which by default is <Crtl-C>.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014