![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting cronjobs... | krworks | Shell Programming and Scripting | 4 | 06-06-2008 02:46 AM |
| How to Control Cronjobs using Shell Script?? | hanu_oracle | Shell Programming and Scripting | 8 | 03-18-2008 11:49 AM |
| Delete Duplicate Cronjobs | nskworld | UNIX for Advanced & Expert Users | 2 | 07-20-2007 10:30 AM |
| Time Zone in AIX and cronjobs | run_time_error | AIX | 1 | 04-28-2006 06:42 AM |
| Cronjobs | mcastill66 | AIX | 1 | 05-31-2005 02:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Add the following line to the /var/spool/cron/crontabs/owner of testScript.sh file using the vi editor:
0 0 * * * /absolute Path/testScript.sh The format of this file is six fields: minute (0-59); hour (0-23); day of month (1-31); month (1-12); weekday (0-6,0=Sunday); command to execute. I am not certain of the command syntax. The crontab search path for can be set in /etc/default/cron file PATH= for user's, SUPATH= for root cronjobs. Access to the crontab command (used to execute/delete/list cronjobs) is controlled by /etc/cron.d/cron.allow or the /etc/cron.d/cron.deny files (one user per line). Basically a user will be able to use the crontab command if the account is listed in the cron.allow file. By default all initial non-admin accounts are listed in the cron.deny file. If the cron.allow file does not exist users will be allowed access to the crontab command as long as they are not listed in the cron.deny file. Mardio |
|
||||
|
The only thing I would like to add is that it is sometimes necesary to set the $EDITOR variable before executing `crontab -e`
To do this, type EDITOR=vi;export EDITOR Otherwise it will open your crontab file with ed (unfriendly line editor) |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|