Re: How to prevent application info getting sent back to SSH client

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 09/21/02


From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Date: Sat, 21 Sep 2002 13:35:01 GMT


"Garry Shum" <netname@hotmail.com> wrote in message
news:rgunou8mda84l12j32d5g6dhvaftvi9938@4ax.com...
> I figured it had something to do with redirection /dev/null. Tried
> using the -n option but didn't do a thing. It works with...
>
> ssh -l administrator ntmachine "c:/opera/opera.exe > /dev/null"
>
> ...works great. The only drawback is that the SSH client session
> doesn't immediately end after the command is sent. The shell running
> the command on the SSH server machine has to complete before the SSH
> client session will exit.

Oy. I have *no* idea how to do output redirection in NT, but recent versions
of OpenSSH don't close the session until stdout, stderr, and stdin are
closed off (as they are called in the UNIX world). That's why I had the
"2>/dev/null" for UNIX, to redirect stderr, and "</dev/null", to redirect
stdin.

For NT, I assume you need to do something similar, at least to stdin if not
to some form of stderr.



Relevant Pages

  • Re: Editable input from the console windows
    ... stdin, stdout, and stderror in relationship to pipe commands. ... I understand the fundamentals behind redirection. ... The exec command adds to the confusion as well. ... I learning the syntax and build upon a previously working script. ...
    (comp.unix.shell)
  • Re: ssh / sshd to own machine through IP-NAT
    ... - Port redirection to 22 ... OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090605f ... debug1: Rhosts Authentication disabled, ...
    (comp.security.ssh)
  • Re: Porting app using GetStdHandle
    ... I believe that in general if stdin is redirected to your application, ... PocketPC's, since PocketPC doesn't ship cmd.exe, which is the only app I ... know that would ever change stdin based on file redirection. ... _getstdfilex is itself a function declared as: ...
    (microsoft.public.pocketpc.developer)
  • Re: Redirecting stdin to a file requiring parameters
    ... If I understood correctly I should try pipes instead of redirection. ... ssh oabbott@stageserver < cmd.sh ... Shell Scripting Recipes: ...
    (comp.unix.shell)
  • Re: Multifunction printers; any experiences?
    ... X redirection through the SSH tunnel would do it, ... your home box listening on a local port, ... tunnel to the VNC server on your home machine. ...
    (uk.comp.os.linux)

Quantcast