[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sending commands to a process which runs inside screen
From: |
Thomas Adam |
Subject: |
Re: Sending commands to a process which runs inside screen |
Date: |
Wed, 20 Apr 2011 14:34:45 +0100 |
On 19 April 2011 11:26, Stefan Kuhlemann <address@hidden> 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