Friends ,
I have the following questions about crontab file :
1) In crontab file I got the folllowing output :
[root@lpt ~]# cat /etc/crontab
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 know that the file under cron.hourly/daily/weekly are system specific executables file . Then If I want to keep a manual script like (test.sh) into cron.daily and i want it runs at 10:00 am everyday, so I edit the crontab file :
00 10 * * * root run-parts /etc/cron.daily
But the script(test.sh) is not working .
Now my question , is it not possible to run the manual scirpt (not system specific) using cron.daily or cron.hourly directory ? or it is only used for system specific executables file ? Hope I have to clear my question .
2) What is the function of 'run-parts' command .
3)
In the below crontab line :
*/5 * * * * /tmp/test.sh
what is meaning of 5 ? it it 5 sec or 5 min
Waiting for ur kind reply ... ...