Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: FTP script suddenly not working from crontab

by joetesta (Novice)
on Jul 17, 2014 at 22:57 UTC ( [id://1094138]=note: print w/replies, xml ) Need Help??


in reply to Re: FTP script suddenly not working from crontab
in thread FTP script suddenly not working from crontab

I'm sure you've got to be right. It's so strange that it works sometimes. Now I've added to my crontab line a call to the user's .profile and it seems to be working!

Old user's crontab line:

* * * * * perl /home/user/data/code/copy.pl ftp3 >> /tmp/ftp3.log 2>&1

New user's crontab line:

* * * * * . ~/.profile; perl /home/user/data/code/copy.pl ftp3 >> /tmp +/ftp3.log 2>&1

Well that lasted about a minute, timed out and back to errors from crontab

Log In?
Username:
Password:

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

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

    No recent polls found