Hi, Nancy,
You may need to use the full path to scp (e.g., /usr/local/bin/scp) with
crontab. Jobs run from cron usually have a limited path which may not
include the directory where scp is installed.
Regards,
Philip D. Seth, System/Database Administrator
Linfield College, [EMAIL PROTECTED]
But behold, I say unto you that ye must pray always, and not faint...
-----Original Message-----
From: Nancy Lin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, December 23, 1999 4:20 PM
Subject: Problems running scp via a crontab shell script
> #!/bin/sh
> scp -p machine1:/file1 ./file1
> scp -p file1 machine2:/file1
> scp -p file1 machine3:/file1
> scp -p file1 machine4:/file1
> ...
>
>I've been able to get it to work with scp1 (1.2.27) using .shosts, BUT
>only by executing it on the command line. It just doesn't do anything
>when I try to execute the script through a crontab.