Re: ssh2 and scp2 fails in crontab.
From: Hans Blom (tocum2_at_yahoo.com)
Date: 08/30/05
- Previous message: Hans Blom: "ssh2 and scp2 fails in crontab."
- In reply to:(deleted message) all mail refused: "Re: ssh2 and scp2 fails in crontab."
- Next in thread: Stein Arne Storslett: "Re: ssh2 and scp2 fails in crontab."
- Reply: Stein Arne Storslett: "Re: ssh2 and scp2 fails in crontab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 30 Aug 2005 23:53:40 +0200
all mail refused wrote:
> On 2005-08-30, Hans Blom <tocum2@yahoo.com> wrote:
>
>
>>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.
>>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?
>
>
> Beside getting a decent shell you mean ?
>
> Environment and terminal differences probably exist between the conditions
> at your shell prompt and in your cron jobs.
>
:-) I knew the choice of Cshell would be commented. OK, it has it's
shortcomings, but you dont have to "if [[ d != 0 ]]" or (from my point
of view) other monstreous constructions.
Anyone got any decent comments on the problem, please?
Regards
Hans
- Previous message: Hans Blom: "ssh2 and scp2 fails in crontab."
- In reply to:(deleted message) all mail refused: "Re: ssh2 and scp2 fails in crontab."
- Next in thread: Stein Arne Storslett: "Re: ssh2 and scp2 fails in crontab."
- Reply: Stein Arne Storslett: "Re: ssh2 and scp2 fails in crontab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|