Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl Script Not Working With Crontab

by clinton (Priest)
on Aug 23, 2007 at 14:54 UTC ( [id://634655]=note: print w/replies, xml ) Need Help??


in reply to Perl Script Not Working With Crontab

The two things I can think of both have to do with your environment:
  1. You don't have permission to write to that folder (ie your script isn't running as the user you think it is)
  2. The current working directory is different from what you think it is, so testcron.txt is being created (or not if you don't have permissions), but not in the place where you expect
Try running a simple cron command like: env && pwd > /home/monkfan/test.txt

Clint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-23 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found