Re: ssh2 and scp2 fails in crontab.

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

  • Next message: Neil W Rickert: "Re: ssh2 and scp2 fails in crontab."
    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


  • Next message: Neil W Rickert: "Re: ssh2 and scp2 fails in crontab."

    Relevant Pages

    • Re: ssh2 and scp2 fails in crontab.
      ... > file at server with ssh2 to indicate successful download. ... > The scripts run in Cshell. ... Beside getting a decent shell you mean? ...
      (comp.security.ssh)
    • 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)
    • Re: ssh2 and scp2 fails in crontab.
      ... >The scripts run in Cshell. ... >put them into crontab for periodic running. ... How are you handling authentication? ...
      (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)