in reply to perl script and cron

What makes you think it starts the FTP before the tarball is finished?

If you're judging by received file size, is it not more likely that the FTP hangs up in the middle?

Unless Archive::Tar makes use of threads or forks off a process, then it seems unlikely that FTP starts before tar finishes.

One other possibility is that tar->write is filling the disk, fails, and then the FTP starts.

We need more info to help you out.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: perl script and cron
by snyder (Initiate) on Mar 23, 2006 at 21:13 UTC
    the question is, why does it only fail when cron runs it? If i run it from consol, it runs like a champ everytime.