New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
@tinyray you could log the programs output to a text file and then work with that text file.
This was discussed in IRC a few weeks ago, I forget with-who, but we came up with:
To send a script to the program, echoing commands to the correct file descriptor of the process ID would be the best solution, but did not work for my process. This was most likely due to the process that I I was attempting to interface, so you'll probably have better luck: http://serverfault.com/questions/178457/can-i-send-some-text-to-the-stdin-of-an-active-process-running-in-a-screen-sessi
The last post, #9, worked for me: http://www.linuxquestions.org/questions/linux-software-2/how-to-send-a-command-to-a-screen-session-625015/ .
Thank you for your quick feedback,
To be clear: Assume that I open a screen session on my desktop, from the screen session, I open a SSH session onto a remote server. I then quit the screen session.
Is there any way to send a text from my desktop to that server and ask it send the text back via email using the screen session which is currently not attached.
Thanks
@Damian, I tried the post#9 in the thread you provided, but could not get it work even with a simple command: ls , any hint?
got it done, thanks guys.