Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: perl script and cron

by socketdave (Curate)
on Mar 23, 2006 at 20:07 UTC ( #538848=note: print w/ replies, xml ) Need Help??


in reply to perl script and cron

I'm not too familiar with Archive::Tar, but this sounds like it could be a permission or path problem. When run by cron, does the tarball get created where you expect it? If so, does it get to the same size every time? Are you sure that you are running the script as the same user from the command line and from cron?


Comment on Re: perl script and cron
Re^2: perl script and cron
by snyder (Initiate) on Mar 23, 2006 at 21:16 UTC
    the cron script runs as root, I run the script form consol as SU (root) and the file size is the same everytime (6 tries). When cron runs it it is 1k and exactly where it is supposed to be localy and remotely. When I run from consol it does exactly as it should. tarball is 60 megs and where is should be localy and remotely.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-22 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls