On Mon, 31 Mar 2014 08:01:03 -0400, Tanstaafl wrote:

> > You're running tar with -v so it should produce output no matter what
> > it does. Is that mailed to you? What does it say?  
> 
> I don't have these mailed to me, but like I said, it absolutely does 
> produce output - the problem is, when run from cron, the resulting file 
> is only 20 bytes (empty), when I run the exact same script manhually,
> it produces a file of about 500K that containes the contents of /etc..

So you have no idea what output the script is producing when run from
cron? Not a good plan when it is not working :(

When a script runs from the terminal but not from cron it is almost
always because of a difference in the environments, but without seeing
its output we can only guess at the problem.


-- 
Neil Bothwick

- How many surrealists does it take to change a light bulb?
- Two: one to hold the giraffe, the other to fill the bathtub with
  lots of brightly colored machine tools.

Attachment: signature.asc
Description: PGP signature

Reply via email to