Mazhar <[EMAIL PROTECTED]> wrote: > My Code is to ping a range of IP reading from a text file and > if they are not reachable then just write the IP's to a > file. Regarding permissions i am running the same script > using root previliges and i am able to run the script maually > but it is failing if i write the script in cron like one > below, 10 * * * * /scripts/xxxx.pl > > Can u all please help on the above
How do you ping the remote hosts? If you script runs on the command line but not from cron, then it's usually a safe bet that it's due to the environment and especially the PATH variable. Either make sure to set up the PATH properly or run commands using their fully qualified path names. HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>