Raghavan
Can you re-write the same functionality in the perl pgm
since i cudn't find any mailing list for shell
wud be appreicated ur reply asap
rgds
venkat

-----Original Message-----
From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 1 July 2003 4:44 PM
To: Vema Venkata
Subject: Re: [OT]Re: log file -help


Vema Venkata wrote:

>raghavan,
>sorry to bother u.
>
>since i was new to this domain..
>can you let me know how did you make out it is shell not perl?
>ur reply is most appreicated.
>

The if - fi construct, conditions specified within [] etc. are shell 
syntax. You will begin to understand the difference once you get used to it.

>
>
>  
>
>>>
>>>
>>>xapipgm=srvtst26.pl
>>>pgrep -f $xapipgm > /dev/null
>>>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."
>>>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
>>>
>>>
>>>it is running fine and i need to incorporate  a log file 
>>>can any body suggest me on this
>>>      
>>>



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

Reply via email to