[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to automatically attach to session, create new window and run a
From: |
Andrew Pantyukhin |
Subject: |
Re: How to automatically attach to session, create new window and run a program? |
Date: |
Mon, 15 Oct 2007 16:02:50 +0400 |
User-agent: |
Mutt/1.5.16 (2007-06-09) |
On Mon, Oct 15, 2007 at 02:47:41PM +0300, Eugeny N Dzhurinsky wrote:
> Hello!
>
> I have somelike a strange requirement - I would like to create a script, which
> will check if screen is already running, if so - open in in terminal (rxvt for
> instance) and reattach to the screen session, and create new window then run
> certain program in it. If there are no screen running, then create one and
> invoke a program (the most simplest thing).
Possibly something like
"screen -xRR sesname -X 'screen newprogram'".