Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: perl script and cron

by Errto (Vicar)
on Mar 23, 2006 at 21:26 UTC ( [id://538878]=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl script and cron
in thread perl script and cron

The path to the directory is not an issue as I am running the script from the parent directory.

Yes, from the console but not from cron. When you run a program with cron you should safely assume that the current working directory is pretty much arbitrary. Therefore you need to either use an absolute path when checking the directory or explicitly set the current directory using chdir.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-19 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found