On Wednesday, Mar 19, 2003, at 04:04 US/Pacific, Glynn S. Condez wrote: [..]
what should be the problem running on cronjob.
both this doesnt work.

*/5 * * * * perl /path/to/pingscript
*/5 * * * * /path/to/perlscript

one of the first questions out the shoot:


what is the error message you get from cron

normally there is an email that gets generated
stating what the return status of the cronjob was.

One of the things you may need to check for is
whether you have a

PERL5LIB

environmental variable that is available in your
'login shell' - that is not available when cron runs
and provides a limited shell to work with.

In some automounted networked systems I have
found that cron will not force the mounting of /path
so what you would find me do is

*/5 * * * * ( cd /path/to/ ; /path/to/perlscript )

to force the auto mounter...

If you have this running every five minutes, have
you thought about 'daemonizing' it and letting it
simply go into a 'sleep' and/or select on a control
port in a poll loop?

ciao
drieux

---


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



Reply via email to