Hi Shawn,
It should work. Make sure that scp doesn't loose the environment when
running from a cron. The best way is to put it in a script and set the
environment in the script. I would also suggest not to run the cron as
root. I'll soon be moving hundreds of files a day with scp which is
embedded in a Python script which is in turn run from a cron.
Carl
On 09-Mar-00 Song, Shawn wrote:
> I have a shell script, which contais scp, works fine from command line.
> However, if I put it in cron job. I got connection lost. It seems
> that scp
> does not work in cron job. How to solve this problem?
>
> Thanks a lot !
>
> Shawn Song
------------------------------------------------------------------------
E-Mail: Carl J. Nobile <[EMAIL PROTECTED]>
Date: 10-Mar-00 Phone: 315-453-2912 Ex. 5336
Time: 08:17:01 Fax: 315-453-3052
Software Engineering Group -- AppliedTheory Corp.
224 Harrison Street, 6th Floor, Syracuse, NY 13202
------------------------------------------------------------------------