Summary: SSH hangs from cron on Solaris 9

From: Stephen Barnett (DSL AK) (StephenB_at_datacom.co.nz)
Date: 01/26/05

  • Next message: Adolf, Christopher: "SUMMARY: Korn Shell Execution in verbose mode"
    Date: Thu, 27 Jan 2005 10:58:15 +1300
    To: <sunmanagers@sunmanagers.org>
    
    

    Hi,

    It turns out that it's a stdin issue. The following command works:

    echo "mkdir -p /mnt/backup/sxsppdb01" | ssh sxsprdb01

    Thanks to Doc G, you weren't too far off the mark afterall.

    Cheers,

    Stephen

    -----Original Message-----
    From: sunmanagers-bounces@sunmanagers.org
    [mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Stephen
    Barnett (DSL AK)
    Sent: Thursday, 27 January 2005 10:13 a.m.
    To: sunmanagers@sunmanagers.org
    Subject: SSH hangs from cron on Solaris 9

    Hi,

    I have just discovered that a command that runs fine from command line:

    ssh sxsprdb01 "mkdir -p /mnt/backup/sxsppdb01"

    Hangs when run from cron.

    SSH 3.9p1 / Solaris 9 Generic_117171-09

    Any thoughts?

    Thanks,

    Stephen W. Barnett
    Systems Consultant - Unix Division
    Datacom Systems Limited
    Auckland
    New Zealand
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Adolf, Christopher: "SUMMARY: Korn Shell Execution in verbose mode"

    Relevant Pages

    • SSH hangs from cron on Solaris 9
      ... I have just discovered that a command that runs fine from command line: ... Hangs when run from cron. ... Stephen W. Barnett ... Systems Consultant - Unix Division ...
      (SunManagers)
    • Re: Frazz 5/24
      ... Frederick J. Barnett wrote: ... Unless it was supposed to be "Halsey," in which case he did ... have subs under his command when he was area commander during the ... directly command submarines--that would've been Lockwood, ...
      (rec.arts.comics.strips)
    • Re: Cron Job
      ... If you mean the computer itself, put that command ... The standard 'cron' runs jobs at a specific time/date. ... Init or @reboot run jobs when ... Sunday night at 02:00) then copy the script and cron entry. ...
      (comp.os.linux.misc)
    • Re: Cygwin problem with cron and networked drives
      ... command line it is recognized. ... Is the cron job running on a linux system or an MS Windows system? ... versus the user running the cron job. ...
      (comp.os.linux.networking)
    • Re: Nmon scheduling question
      ... command ran first then in the script is the ps and kill command so it ... Vince this is a great script. ... Cron Job with pid: 135238 Failed ...
      (AIX-L)