From owner-freebsd-questions Sat Jan 12 2:13:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by hub.freebsd.org (Postfix) with ESMTP id 7BC2037B416 for ; Sat, 12 Jan 2002 02:13:47 -0800 (PST) Received: from xtremedev.com (xtremedev.com [216.241.38.65]) by mail.XtremeDev.com (Postfix) with ESMTP id 060CD70607 for ; Sat, 12 Jan 2002 03:13:40 -0700 (MST) Date: Sat, 12 Jan 2002 03:13:40 -0700 (MST) From: FreeBSD user To: questions@freebsd.org Subject: OT: Running multiple interactive processes in screen Message-ID: <20020112030327.P32198-100000@Amber.XtremeDev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sorry about this being off topic, but I don't know where else to ask and though this group has enough brain power to muscle something out for me. I'm trying to start several interactive process in screen through a shell script, each in a separate window. Ideally if I run runme.sh, it will start one screen process that has multiple windows, each window running a different program. Ie., runme.sh will create a screen with a session name of 'Sys', and within it will have three windows. The first running top, the second 'systat -i' and the third 'systat -n'. Then all I have to do is attach to that screen session, and do a '^A n' to rotate between all three windows. Is this possible? Thus far, I can create the named screen session (screen -S Sys), and then within it I do a 'screen top', then '^A n' to switch back to the first window with the shell, then 'screen systat -i', another '^A n', then just a 'systat -n'. This works, but very cumbersome. I would like to script all that into a runme.sh, but I can't figure out how to get to that part. Any thoughts on how to create new windows in an existing screen without user interaction with ^A's? Thanks in advance. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message