Question about crontab file!

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 ... ...

  1. It is not system specific: If you do everything right, then it should work.

  2. man run-parts : man run-parts(8) - run scripts or programs in a directory by debian Translated by humans

  3. That is 5 minutes, man 5 crontab

 
field          allowed values
-----          --------------
minute         0-59
hour           0-23
day of month   1-31
month          1-12 (or names, see below)
day of week    0-7 (0 or 7 is Sun, or use names)

copy the script to the directory, don't edit the cron.daily configs.

Also, the script may be failing if the environment variables that you are defining are not set in the script. If you run it manually and it works, but does not in cron, that is usually the case.

Also, if you want the script to run at a different interval than the cron.X then just set up a specific cron job for it with crontab -e.

the cron.X files are for anacron to manage your jobs.