Re: ssh2 and scp2 fails in crontab.

From: Hans Blom (tocum2_at_yahoo.com)
Date: 09/09/05


Date: Fri, 09 Sep 2005 21:37:28 +0200

Hans Blom wrote:
> Hello,
> 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?
>
> Thanks for any help
> Regards
> Hans B
Problem solved---------------
Commercial SSH2 install into /usr/local/bin which isn't in you path when
 run through crontab. Took me some digging........
As to the comments on csh scripting. Well. I've written quite a few
"heavy applications" using csh and I like the freedom of being able to
indent codelines, put in spaces in expressions etc etc. Other shells
don't allow all this, so to each his own. As long as your aware of the
limitations there is no problem.

Regards
Hans



Relevant Pages

  • Re: ssh2 and scp2 fails in crontab.
    ... >>file at server with ssh2 to indicate successful download. ... >>The scripts run in Cshell. ... > Host based authentication should work fine from cron. ... SSH2 Commercial version. ...
    (comp.security.ssh)
  • ssh2 and scp2 fails in crontab.
    ... file at server with ssh2 to indicate successful download. ... The scripts run in Cshell. ...
    (comp.security.ssh)