Pipe data through a socket



I have a client/server socket written to perform basic commands. What I am wondering is if I can have the client tell the server.pl tar to stdout back through the socket where the client would gzip from stdin.

We the firewall rule sets we have ssh is our only option, but that seems to add more overhead then we like.

If this is possible does anyone have an example?

Thanks
Scott

.



Relevant Pages

  • Re: Q: paramiko/SSH/ how to get a remote host_key
    ... for line in stdout: ... you dont need to import base64. ... SSH client, if you connect for the first time then you get somethign ... host_key the first time it connects to a remote SSH server. ...
    (comp.lang.python)
  • Re: StdOut and StdErr reading...
    ... My idea is to use the Execmethod to run the client, ... via StdIn and receive output via StdOut and StdErr. ... I was able to find a condiction (when I read "sftp>" from the buffer) ...
    (microsoft.public.scripting.vbscript)
  • Maintaining message boundaries in redirected stdout/stderr
    ... child program's stderr and stdout back to the client. ... get mixed up by the time that they get back to the client. ...
    (comp.unix.programmer)
  • Re: select + stderr
    ... > I have a client - server, but this works only for stdout. ... > file), I get the error message on server side on stderr, but on client ...
    (comp.unix.programmer)
  • Re: Socket programming problem: cant generate output in server socket
    ... I think in the client example add a char buffor of any size. ... Then instead of writing on the stdout by using printf for "Connection ... Then in the client code you need to read); ...
    (comp.unix.programmer)