The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-16-2008
pupp pupp is offline
Registered User
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 189
" You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow. If that file does not exist, you can use
crontab if your name does not appear in the file /usr/lib/cron/cron.deny.
If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line. "


Code:
##############################################################################
# minute (0-59),
# |      hour (0-23),
# |      |       day of the month (1-31),
# |      |       |       month of the year (1-12),
# |      |       |       |       day of the week (0-6 with 0=Sunday).
# |      |       |       |       |       commands
# 3      2       *       *       0,6     /some/command/to/run
# 3      2       *       *       1-5     /another/command/to/run
so it might look this:
Code:
export EDITOR=vi
crontab -e
0 0 * * 6 /run/some/command
Reply With Quote