[CentOS] Automatic FTP problem in cron

Clint Dilks clintd at scms.waikato.ac.nz
Wed Sep 12 05:39:51 UTC 2007


umair shakil wrote:
> Dear Concerns,
>
> I have backup script which TAR the data, makes one copy on local 
> hardisk and then FTP to another machine.
> Last few days i m facing problem with it. The cron job only makes the 
> copy automatically on local disk but
> doesnot automatically FTP to another machine.
>
> I ran the script manually, the script runs successfully.
>
> For trouble shooting i displayed the output in some file and shown 
> this error:
>
> Cron Entry is :
> */5 * * * * /opt/bin/ftp.sh 2> /tmp/error_log
>
> "/opt/bin/ftp.sh: line 3: ftp: command not found"
>
Hi,

Either modify the PATH environment variable in your script so that it 
includes /usr/bin or specify the ftp command that must be inside this 
script as /usr/bin/ftp rather than ftp.

Have a nice day :)

> Please help me out of this problem.
>
>
> Regards,
>
> Umair Shakil
> Askari Bank Limited
> ------------------------------------------------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   




More information about the CentOS mailing list