Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Running a perl script from cron

by Eimi Metamorphoumai (Deacon)
on Dec 21, 2005 at 19:36 UTC ( #518414=note: print w/replies, xml ) Need Help??

in reply to Running a perl script from cron

Now you're including way too much code to wade through. If you reduce the code to just the relevant parts, you'll probably find the error. Nonetheless, tracing it back I think I may have found it.
10:30:00 - Last user sync at
That seems to imply that at that line, $last_user_sync is empty or undef. Tracing back where you got that, I see that ulimately the $ENV{"ORACLE_HOME"} variable is being relied on. Is that set inside your cron job?

As an aside, preview your code. You'll notice that you don't need the <br> at the end of every line, and it makes it much harder to read.

If that doesn't do it, then please cut out all unnecessary crap from your code and repost it. Just a tiny script that does nothing more than fill and print the variable.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://518414]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-10-30 20:21 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (284 votes). Check out past polls.