Dude iam using srvtst26.pl yes.. and the script is situtated in the following path i.e "/proj/ahd02/CAisd/site/mods/scripts"
can u suggest me where i should use ... -----Original Message----- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2003 6:55 PM To: Vema Venkata; David T-G Cc: perl beginners Subject: RE: Cron jobs and perl > Hi david > > when i am trying to run the following script > it is getting executed but when iam tryint to execute thru > corntab it is not?can any one suggest > > the script name is xapipgm.pl Actually in your example below it is srvtst26.pl Try using absolute paths. Sometimes cron won't have the same paths in the enviropnment as you do when running via cmd line and same principle applies with trunning via webserver. HTH DMuey > > ************************************************************** > ********** > ******* > #!/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 > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]