Re: ssh2 and scp2 fails in crontab.
From: Hans Blom (tocum2_at_yahoo.com)
Date: 08/31/05
- Previous message: PiRanha: "Putty command line : how to execute initialization commands and keep the session opened ?"
- In reply to: Neil W Rickert: "Re: ssh2 and scp2 fails in crontab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 31 Aug 2005 12:09:25 +0200
Neil W Rickert wrote:
> 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).
>
Hello,
the authentication is publickey based.
And I'm sorry I should have mentioned OS is Linux Enterprise and ssh is
SSH2 Commercial version.
Regards
Hans
- Previous message: PiRanha: "Putty command line : how to execute initialization commands and keep the session opened ?"
- In reply to: Neil W Rickert: "Re: ssh2 and scp2 fails in crontab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|