Operating System - OpenVMS
1830227 Members
2556 Online
109999 Solutions
New Discussion

SYSERROR or LogFile in SSH command

 
Viet-Hung
Occasional Contributor

SYSERROR or LogFile in SSH command

The node M01DV9 I64 is running on VMS8.3 and TCP/IP5.6 and is a SSH client
The node M01DV8 Alpha is running on VMS8.2 and TCP/IP5.6 and is SSH server.
The problem is:
---------------
My program use lib$spawn to execute SSH commands in background, but the errors were displayed on the terminal, then I realize that SSH does not have options supported by RSH command such as [/LOG_FILE=file] or [/SYSERROR] to redirect the errors or warnings or SSH result to a logfile or to SYSERROR. Somebody can give a help.

Thanks,
/Hung
2 REPLIES 2
Wim Van den Wyngaert
Honored Contributor

Re: SYSERROR or LogFile in SSH command

Why don't you redirect the output of the spawn ?

Wim
Wim
Viet-Hung
Occasional Contributor

Re: SYSERROR or LogFile in SSH command

Hi Wim,

I did redirect the output of the spawn, but the we can see it only on the remote site.

Somebody can give a help.

Thanks,
/Hung