[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to create a set a screen windows from a shell script
From: |
Thomas Köhler |
Subject: |
Re: How to create a set a screen windows from a shell script |
Date: |
Sun, 3 Jun 2007 06:03:16 +0200 |
User-agent: |
Mutt/1.5.4i |
Hi,
Bob Bawn wrote:
> address@hidden cluster]$ xargs -l1 -t screen < cmds
> screen less /etc/inittab
> Must be connected to a terminal.
> screen less /etc/fstab
> Must be connected to a terminal.
> address@hidden cluster]$
>
> Should I be using expect or something that talks to ptys?
You can try "-X". This works for me:
~> xargs -l1 -t screen -X screen < cmds
screen -X screen less /etc/inittab
screen -X screen less /etc/fstab
> Is there a better way to start a set of processes, one per screen window?
You could always ignore any running screen and do something like
this:
~> cat > cmds
screen less /etc/fstab
screen less /etc/inittab
~> screen -m -c cmds
Ciao,
Thomas
--
Thomas Köhler Email: address@hidden
<>< WWW: http://gott-gehabt.de
IRC: tkoehler
PGP public key available from Homepage!
signature.asc
Description: Digital signature