Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2008 10:07:47 +0200
From:      "Aggelidis Nikos" <aggelidis.news@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   open multiple xterms with script
Message-ID:  <30fc78250812020007h22ab0dc4if044e46b4f36b00c@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi to all the list,

i need some help... Is it possible to open four consoles as
root(authenticate yourself once), in each one run a specific program
and do this through a script? {bash or python).
i want to open 4 xterms in the four corners of the screen. In 3 xterms
i want to run specific applications needing root privileges and the
last i want it for administrative purposes.

what i have so far:

sudo xterm -e "path/to/application1" &
sudo xterm -e "path/to/application2" &
sudo xterm -e "path/to/application3" &
sudo xterm

But this approach has the following problems:

1) i have only managed to get it to work as sudo not su

2) i haven't managed to position the 4 terminals correctly
in the 4 corners of the screen

3) i want to be able to close and restart a single terminal.without
running again the whole script (this i am not sure if it is even
doable). For example if one of the applications hungs, then i want to
be able to restart this application, without running the whole script
again.


thanks in advance for your help,
nicolas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30fc78250812020007h22ab0dc4if044e46b4f36b00c>