crontab problem

HI,

i am working on linux.

i have crontab problem

i wrote a small script and put it in a crontab .

but the script is not running..

i have given following way in crontab -e

02 06 * * * /bin/csh /home/vr_test.csh

but the above script is not running

please rectify my problem

regards
rajan

are you able to run the script through command line.
and using ./scriptname.csh in the crontab may help you, like

02 06 * * * cd /bin/csh /home/; ./script.csh

from command line i am able to run the script

./test.csh

i modified crontab with your script but it is not working..

your script is kept at what path?

/home/xtuser/test.csh

try giving

2 6 * * * cd /home/xtuser/; ./test.csh

no use

not working

Two points to consider here....

1)I made a small mistake while posting the previous message. I have edited it now so check with the following entry

2 6 * * * cd /home/xtuser/; ./test.csh

2)have you modified the time entries properly, because according to the entries given in the script it will run at 06:02 am everyday?

if still not working let me know, because now it should work.

not working

i have give like this.
sorrry inplace of teradm, xtuser i wrote.

08 07 * * * cd /home/teradm/; ./test.csh

tail the log file kept at /var/adm/cron/ and check if your job was called as scheduled

log is like this

Feb 18 07:05:59 incois-a crontab[2980]: (teradm) REPLACE (teradm)
Feb 18 07:05:59 incois-a crontab[2980]: (teradm) END EDIT (teradm)
Feb 18 07:06:01 incois-a crond[2557]: (teradm) RELOAD (cron/teradm)
Feb 18 07:06:19 incois-a crontab[3009]: (teradm) BEGIN EDIT (teradm)
Feb 18 07:07:32 incois-a crontab[3009]: (teradm) REPLACE (teradm)
Feb 18 07:07:32 incois-a crontab[3009]: (teradm) END EDIT (teradm)
Feb 18 07:08:01 incois-a crond[2557]: (teradm) RELOAD (cron/teradm)
Feb 18 07:08:19 incois-a crontab[3057]: (teradm) BEGIN EDIT (teradm)
Feb 18 07:10:01 incois-a crond[3062]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 18 07:10:49 incois-a crontab[3057]: (teradm) END EDIT (teradm)

sorry brother no idea, why its not working,
I am not able to make out the problem from the log

then what should i do

wait for some guru to throw light on it,
i have no idea why its not working

show me your vr_test.csh code

##test.csh

echo "varadatrasdf" > name
#set dat=`"date"`
ls -l > pas

regards
rajan

do you want to do it with the codes

no yar i have another script

but i wrote this for testing crontab execution.

but, crontab not running.

please help

regards
rajan

What release of which OS? Is cron running? Try this crontab entry:

          • date >> /tmp/date.out

Does that crontab entry work?

dear permando,

i have tried with your command put it in crontab

i have checked /tmp dir.

but crontab is not running.

please help.

regards
rajan