I have a problem with cron...
I have two scripts running 5 minutes apart every day. The first script is doing a 
compressed tar on a directory, the second is doing an FTP of the resulting tar on 
another machine. If I run the scripts manually, everything works fine. When cron run 
the scripts, it get stuck on a big object of 1.4 meg and the tar command fail. The 
second script is then sending an incomplete archive to the other machine.

The first script look like this:

#!/bin/sh
/bin/tar -zcvf          /dest_directory/my_arch.tgz     /source_directory/*

The second look like this (with a .netrc file in my home):
#!/bin/sh
ftp some_ip_address

Someone have an idea?

Thanks

Thierry

Reply via email to