That works nicely:

$ xargs -l1 -t screen -X screen < commands

And all is cool.

Thanks very much for your help.

-Bob


On 6/2/07, Thomas Köhler <[EMAIL PROTECTED]> wrote:

Hi,

Bob Bawn wrote:
> [EMAIL PROTECTED] 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.
> [EMAIL PROTECTED] 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:       [EMAIL PROTECTED]
    <><             WWW:              http://gott-gehabt.de
                    IRC:                           tkoehler
                    PGP public key available from Homepage!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFGYj2ETEYXWMJlHuYRAqpxAJwOvHO3lBoBIX9TMGTPUh+GsBj8zQCfZaK0
niQUVbNY0IdBb+05/kuAt1U=
=+d2W
-----END PGP SIGNATURE-----


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to