Please post back to the list and not just me only.

> dude
> this is the error iam getting again
> **************************************************************
> ************************
> /proj/ahd02/CAisd/site/mods/scripts/xapipgm.pl: 
> log/init/ahdxapi.init..log.: cannot create
> **************************************************************
> ***************************

Ok, does everything have permission to create/write log/init/ahdxapi.init..log?
Does that path exist in the cwd of the shell script or the perl script?
Change it to an absolute path and I'll bet it works.

Also the $1$2$3 variable sare empty, anythign on your system freak 
about having a filename with 2 periods side by side?


This isn't really a perl question since it doesn't 
look like the Perl script is giving the error.
It's a permission and path issue as far as I can tell.

HTH

Dmuey

> 
> #!/bin/bash
> #myrun.shell 
> xapipgm=/proj/ahd02/CAisd/site/mods/scripts/srvtst26.pl

Why do you set this var here...

> 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.log."
> set `date '+%Y %m %d %H %M' `
> xapipgm=srvtst26.pl

...And here?

> perl -w $xapipgm > log/init/ahdxapi.init.$1$2$3.log 
> 2>log/init/ahdxapi.init.$1$2$3.err
> fi
> 

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

Reply via email to