Re: ssh2 and scp2 fails in crontab.
From: Neil W Rickert (rickert+nn_at_cs.niu.edu)
Date: 08/31/05
- Next message: PiRanha: "Putty command line : how to execute initialization commands and keep the session opened ?"
- Previous message: Hans Blom: "Re: ssh2 and scp2 fails in crontab."
- In reply to: Hans Blom: "ssh2 and scp2 fails in crontab."
- Next in thread: Hans Blom: "Re: ssh2 and scp2 fails in crontab."
- Reply: Hans Blom: "Re: ssh2 and scp2 fails in crontab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 31 Aug 2005 01:28:17 GMT
Hans Blom <tocum2@yahoo.com> writes:
>I've written a few scripts that get files via scp2 and just touches a
>file at server with ssh2 to indicate successful download.
>The scripts run in Cshell.
Bad choice for scripting.
>Interactively they run like a charm and admiring myself in the mirror I
>put them into crontab for periodic running.
>And.... The little buggers fail. I get a $status of 1 (generic error).
>Anyone got any ideas what to do?
How are you handling authentication?
Host based authentication should work fine from cron. But password
based will give you problems, since there is no tty available for
prompting for a password (or a passphrase).
- Next message: PiRanha: "Putty command line : how to execute initialization commands and keep the session opened ?"
- Previous message: Hans Blom: "Re: ssh2 and scp2 fails in crontab."
- In reply to: Hans Blom: "ssh2 and scp2 fails in crontab."
- Next in thread: Hans Blom: "Re: ssh2 and scp2 fails in crontab."
- Reply: Hans Blom: "Re: ssh2 and scp2 fails in crontab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|