![]() |
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 |
| Crontab question | blondie2407 | HP-UX | 12 | 09-16-2009 01:53 PM |
| Crontab Question. | NycUnxer | UNIX for Dummies Questions & Answers | 9 | 11-14-2007 11:53 AM |
| CRONTAB Question | pauls_579 | UNIX for Dummies Questions & Answers | 2 | 01-23-2007 05:46 PM |
| Crontab question | *Jess* | SUN Solaris | 3 | 07-26-2006 12:19 AM |
| crontab question | steelrose | UNIX for Dummies Questions & Answers | 5 | 10-05-2005 12:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
CRONTAB Question
Hello,
When I do a crontab -l I get the following listing: [root@mail-02 cron.daily]# crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.13826 installed on Thu Jun 23 10:13:18 2005) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) #0 1 * * * scp /tmp/ypfile2 creek://tmp 59 20 * * 1,2,3,4,5 /backup/mail-02_sda3.sh >/tmp/dumplog_nst2.log 2>&1 59 20 * * 1,2,3,4,5 /backup/mail-02_sdb1.sh >/tmp/dumplog_nst1.log 2>&1 #45 18 * * 1,2,3,4,5,6 /root/dump.sh >/tmp/dumplog.txt 2>&1 #00 10 * * 1,2,3,4,5 /root/dump2.sh >/tmp/dumplog2.txt 2>&1 30 14 * * 1,2,3,4,5 /root/crons/UsersList.pl >/dev/null 2>&1 #05 9 * * * /root/crons/du_file.sh >/tmp/du_errors.txt || mail -s "du_file.sh didn't run" root@swi.com < /tmp/du_errors.txt 0 8 * * * /root/crons/etcBack.sh >/dev/null 2>&1 30 11 * * * /bin/chown -R pavisit:users /home/pavisit/ >> /var/log/messages 00 21 * * 1,2,3,4,5 /backup/dmzback > /backup/logs/backup.log 2>&1 00 9,21 * * 0,1,2,3,4,5,6 /usr/sbin/ntpdate 205.150.86.60 > /dev/null 2>&1 0 * * * * /root/clean_post When I go to /etc/crontab I just see: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly ------------ I have looked for other crontabs but cannot find any. What file is crontab -l listing? And I am logged in as root when I ran crontab and checked /etc/crontab. |
|
|||||
|
Yes, if you put a script in /etc/cron.daily it will run everyday at 04:02am, assuming your script is correctly written. Just because it runs from the shell prompt does NOT mean it will run from cron. You will have to search the forum(s) for specifics.
Remember the following are VERY helpful: 1) The search function on this website 2) man pages 3) google search |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|