Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://538848]
[chacham]: Chlorine Trifluoride
Discipulus de gustibus non disputandum

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2017-04-28 11:24 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (521 votes). Check out past polls.