Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sending and receiving data to standard input and output of the linux based server.

by Exploringperl (Initiate)
on Mar 01, 2013 at 13:05 UTC ( #1021250=note: print w/ replies, xml ) Need Help??


in reply to Sending and receiving data to standard input and output of the linux based server.

Thnaks for Information!! But the question is slight different. I can do either telnet, ssh or http daemon to connet to server and issue commands. I can even wait for the response. But all these assume that on the server side there is a standard command/shell prompt. My question is once I issue the command (eg ./run.out), this run.out waits for some <STDIN> and the prompt is ">>" instead of "# or $ or ~". The .out is now waiting for some data at the stdin, so I need to send some Data after it waits for STDIN. How to I Send data to the .out running at server waiting for the <STDIN>?


Comment on Re: Sending and receiving data to standard input and output of the linux based server.
Re^2: Sending and receiving data to standard input and output of the linux based server.
by tmharish (Friar) on Mar 01, 2013 at 13:36 UTC

    SSH the file with params and redirect the input?

    ./run.out < file_with_params_SSHed_from_client > output_you_can_ssh_ba +ck_to_client
Re^2: Sending and receiving data to standard input and output of the linux based server.
by regexes (Hermit) on Mar 01, 2013 at 14:11 UTC
Re^2: Sending and receiving data to standard input and output of the linux based server.
by hippo (Curate) on Mar 01, 2013 at 23:28 UTC
    I can do either telnet, ssh or http

    Great - so use HTTP. These days web services are pretty trivial and you can use HTTPS for additional security and authentication. Simply send the server some data as query string or POST params and await the response. Let all the tricky interface stuff happen on the server side.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-10-21 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (103 votes), past polls