At first, the 2 scripts were running in the same cron job, but it was not working...
The big object is a PowerPC object file (obj.o) for an embedded platform. Basically, I
just want a cheap way to backup a CVS repository.
-----Original Message-----
From: Rusty Carruth [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 10:58 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] cron problems...
Thierry De Corte <[EMAIL PROTECTED]> wrote:
> 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?
maybe you should run the 2 scripts in the same cron job? Something liek this:
#!/bin/sh
/bin/tar <etc>
if [ $? -ne 0 ] ; then
echo "Fatal - tar command failed."
exit 1
fi
ftp some_ip_addr
-----end.....
also, what exactly is the big object? is it a pipe or some other special file?
rc
Rusty Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621 SnailMail: Schlumberger ATE
FAX: (480) 345-8793 7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
ICBM: 33 20' 44"N 111 53' 47"W