Anytime you have problems with a cron, the easiest place to look first is in the cronlog. If you have root access, look at the file /var/cron/log (this is Solaris, other *nix may have it elsewhere). If you don't have root access, delete my E-mail and I apoligize for intruding. :-)
In the cron log you will see if the command executed or if it failed out. You may also note you "have mail", which may contain some useful info. (again, this is all from a Solaris point of view). Looking at your pasted entries, it looks ok, however running the .profile first may be causing problems. John -----Original Message----- From: Vema Venkata [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 10:00 PM To: Dan Muey; Jeff Westman; beginners Subject: Cron jobs and perl Hi Dan The problem still persisits pls. help/suggest me what to do ? When iam executing the xapipgm.pl it is getting executed properly but when iam trying to execute thru crontab it is not xapipgm.pl ************************************************************** #!/bin/sh #myrun.shell xapipgm=srvtst26.pl pgrep -f $xapipgm > /dev/null # runrc=$? # echo "Return Code is: $?" if [ $? -eq 0 ] then set `pgrep -f $xapipgm ` echo "AHD XAPI Server ($xapipgm) Running with Process Id: $1" else echo "AHD XAPI Server is now Started Running on `date`.">log/init/ahdxapi.init.$1$2$3.$4$5.log set `date '+%Y %m %d %H %M' ` xapipgm=srvtst26.pl perl -w $xapipgm > log/init/ahdxapi.init.$1$2$3.$4$5.log 2>log/init/ahdxapi.init.$1$2$3.$4$5.err #perl -w $4$5>log/init/ahdxapi.init fi ************************************************************** Cron tab settings are as follows ________________________________________________________________________________________ * * * * * . /home/paradigm/.profile; /proj/ahd02/CAisd/site/mods/scripts/xapipgm.pl >> /proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init.log 2>&1 _________________________________________________________________________________________ Access permsissons Details In the following path i have "/proj/ahd02/CAisd/site/mods/scripts"------------->Xapipgm.pl "/proj/ahd02/CAisd/site/mods/scripts/log/init"------------->ahdxapi.init.log and the access permission for log folder is drwxr-xr-x and init folder is drwxr-xr-x. And the log file name i.e (agdxapi.init.log) is -rwxrwxrwx rgds venkat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]