Re: output from cron ssh to VMS?



The Invisible Fire That Works In Public wrote:
I would like to run a program on a VMS system under cron control on a
Linux system. This works (usually) as intended, except that I cannot
capture the standard output of the program.
"Pseudo-terminal will not be allocated because stdin is not a terminal"

This is an error arising from an interaction of Linux and cron and ssh. Based on what I see in your message and what I find on the 'net, this does not involve OpenVMS.

I'd suggest you might want to try this same sequence on another box, and that you might want to ask this question in a Linux newsgroup.

Based on what I find, it's a pretty common problem. ssh and cron don't seem to like each other. Usual recommendations are -f, -n and -t, IIRC. See <http://www.oreilly.com/catalog/sshtdg2/chapter/ch11.pdf>, which has some references.

For cron, I'd expect the no-password path through ssh need be working end-to-end, too. There's no password prompting available in cron.

I might well ask why ssh is used to grab the time off a remote system, or if there is something other than SHOW TIME that is the actual target. There are far easier ways to deal with system time, such as setting up the OpenVMS box to use NTP. All of which implies you're up to something else here.



--
www.HoffmanLabs.com
Services for OpenVMS
.



Relevant Pages

  • Re: output from cron ssh to VMS?
    ... My test works with AIX, Solaris, HP-UX, other Linux systems, ... It fails only with OpenVMS. ... cron job; there's no foreground. ... There are far easier ways to deal with system time, ...
    (comp.os.vms)
  • Re: How different is one UNIX or LINUX from another?
    ... and also many well known Linux Distros like SUSE and RedHat. ... be able to do basic administration of a UNIX system or if somebody is ... The cron system is reconstructed for that, ... cron - daemon to execute scheduled commands ...
    (alt.os.linux.suse)
  • RE: [Full-Disclosure] Automated SSH login attempts? Related Cross post from incidents.org
    ... [Intrusions] Linux SSH scanning - test/guest ... There is also a multithreaded SSH bruteforcer called "haita" ... Automated SSH login attempts? ...
    (Full-Disclosure)
  • Re: SSH server with SBC DSL and DynDNS
    ... > I'm thinking about getting SBC DSL service, ... > be able to log into one of my Linux boxes using SSH. ... I have used a broadband router with dynamic SBC DSL, ...
    (comp.os.linux.networking)
  • Re: [SLE] [General] Rules for firewall?
    ... > One Linux server with NFS ... except the windows boxes unless you run cgywin ... > The firewall is to be locked down for user login only via ssh. ... > Any pointers on where to start learning? ...
    (SuSE)