Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Running a perl script from cron

by Eimi Metamorphoumai (Deacon)
on Dec 21, 2005 at 19:36 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found