Re: Sending commands to a process which runs inside screen

Thomas Adam <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On 19 April 2011 11:26, Stefan Kuhlemann <[email protected]> wrote:
> Hello List,
>
> I'm looking for a solutiion for a problem wich keeps nagging me for
> quite some time...
>
> I'm running a win32-software(using wine) on my linux box in background,
> which comes with its own in-build-'command-shell'. It's running within a
> screen-session, since I have to check the status and stuff by typing
> commands into the command-shell of this win32-app (eg. 'stats' or
> 'get_connect') from time to time.
>
> Now - it would be extremely helpfull, if I would be able to post those
> commands to this screen-session automated - instead of reattaching to
> the screen-session and doing it by hand over and over again....
>
> I've tried:
>
> screen -X stats (wont work bc. the 'stats' get's executed as a
> bash-command (?))
> screen -X at 24389.ca-mb% stats  (does nothing at all)
> ...
>
> Any ideas?

Look at what the "stuff" command does in screen.

-- Thomas Adam

_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.