Date: Wed, 3 Dec 2008 09:58:52 +0200 From: "Aggelidis Nikos" <aggelidis.news@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: open multiple xterms with script Message-ID: <30fc78250812022358v1970b4f6x6a1d6b3c9ca8f0c8@mail.gmail.com> In-Reply-To: <20081202093544.a5cb8a21.freebsd@edvax.de> References: <30fc78250812020007h22ab0dc4if044e46b4f36b00c@mail.gmail.com> <20081202093544.a5cb8a21.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank you for your help! some additional questions: 1) is there any way to give the root password once? i tried this: #!/bin/sh su root -c "\ xterm -geometry 80x25 -title 'App 1' -e 'app1' & xterm -geometry 80x25 -title 'App 2' -e 'app2'\ " but i get this: xterm Xt error: Can't open display: %s 2) > Not very elegant and tidy, but should work. You could add some > checking to the first script mentioned so it gets a clue which > application is *not* running and restart it when called, not > starting those that are running again (second session). > i don't think i need something so complex. Is there any way to instruct xterm not to close after the execution of the program? So basically the idea is open 4 terminals, execute a specific command inside them but if the command finishes or stops, the terminal stays {with a new prompt}.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30fc78250812022358v1970b4f6x6a1d6b3c9ca8f0c8>