Hi Floks

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  
*******************************************************************************
#!/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
********************************************************************************corn 
tab settings

****************************************************************************
1-59 * * * * . /home/paradigm/.profile; /proj/ahd02/CAisd/site/mods/scripts/xapipgm.pl 
 > /proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init...log>> 
/proj/ahd02/CAisd/site/mods/scripts/log/init/ahdxapi.init...log

*****************************************************************************

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to