Re: keepalive's in SSH-1 and when to stop reading data



yawnmoth <terra1024@xxxxxxxxx> wrote:
According to the specs, "[SSH_SMSG_EXITSTATUS is] the last message
sent by the server". As such, I have to wonder... is it possible to
execute two commands like this? eg. can you get the output for an ls
and then for a pwd without having to wait, unsure of whether or not
you've reached the end?

Probably not very easily, no. This is one of the inconvenient things
about SSH-1 which was rectified in SSH-2: in SSH-2 you can open
multiple session channels, sequentially or simultaneously or both,
in a single SSH connection.

You could do something really hideous involving running a helper
program on the server side which would run two commands and
packetise their output so you could separate it when it reached you,
but that would depend on having that program available on whatever
server you wanted. (Though you might get away with making it a
longish Perl one-liner...)

If you can possibly arrange to upgrade to SSH-2, that's probably a
better plan.
--
Simon Tatham "_shin_, n. An ingenious device for
<anakin@xxxxxxxxx> finding tables and chairs in the dark."
.



Relevant Pages

  • RE: RPc server is unavailable since SP1
    ... After these commands run successfully, ... RPc server is unavailable since SP1 ... >> when the member server update certificate you get the error message RPC ... >> interface security settings before the installation of SP1 will be lost. ...
    (microsoft.public.windows.server.sbs)
  • Re: z/OSs basis for TCP/IP
    ... direction in the IP component of z/OS Communications Server is to get rid ... The Pascal socket interface uses the IUCV/VMCF services for a limited set ... TSO HOMETEST, LPQ, LPR, LPRM, LPRSET, TELNET, and TESTSITE commands ... - that the generically named TCPIP.DATA data set HOSTNAME ...
    (bit.listserv.ibm-main)
  • Re: executing programs on a server
    ... i want to execute this on my server, ... Do you not have a shell login to the server, so you can run commands normally? ... A general Linux group most likely - comp.os.linux.misc? ...
    (comp.lang.php)
  • Re: z/OSs basis for TCP/IP
    ... Do TSO HELP SEND for syntax and usage. ... z/OS Systems Support ... "replaced" by the CSSMTP server. ... TSO HOMETEST, LPQ, LPR, LPRM, LPRSET, TELNET, and TESTSITE commands ...
    (bit.listserv.ibm-main)
  • [NT] NetWin DMail Authentication Bypass (dlist.exe) and Format String (dsmtp.exe)
    ... either be used as a small personal mail server or as a 10 Million user ISP ... password hash) when sending the administrative commands. ... the DList server using a numeric hash of the administrative password. ...
    (Securiteam)