Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-03-05 04:59 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (109 votes). Check out past polls.