From owner-ssh@clinet.fi  Fri Dec 24 03:21:34 1999
Received: from mail.clinet.fi (mail.clinet.fi [194.100.0.7])
	by hutcs.cs.hut.fi (8.9.3/8.9.3) with ESMTP id DAA15158;
	Fri, 24 Dec 1999 03:21:34 +0200 (EET)
Received: (from majordom@localhost)
	by mail.clinet.fi (8.9.3/8.9.3) id DAA20142
	for ssh-outgoing; Fri, 24 Dec 1999 03:07:26 +0200
Received: from calvin.linfield.edu (calvin.linfield.edu [192.147.171.1])
	by mail.clinet.fi (8.9.3/8.9.3) with ESMTP id DAA20138
	for <ssh@clinet.fi>; Fri, 24 Dec 1999 03:07:25 +0200
Received: from dsl528 (oldoak.linfield.edu [10.218.100.235])
	by calvin.linfield.edu (8.9.3/8.9.3) with SMTP id RAA01117;
	Thu, 23 Dec 1999 17:06:55 -0800 (PST)
Message-ID: <00a701bf4dab$2f195940$5ef2c9cc@dsl528.macdsl.com>
Reply-To: "Philip D. Seth" <phils@linfield.edu>
From: "Philip D. Seth" <phils@linfield.edu>
To: "Nancy Lin" <nlin@library.berkeley.edu>, <ssh@clinet.fi>
Subject: Re: Problems running scp via a crontab shell script
Date: Thu, 23 Dec 1999 17:07:00 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-ssh@clinet.fi
Precedence: bulk

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, phils@linfield.edu
But behold, I say unto you that ye must pray always, and not faint...

-----Original Message-----
From: Nancy Lin <nlin@library.berkeley.edu>
To: ssh@clinet.fi <ssh@clinet.fi>
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.


