open multiple xterms with script

Aggelidis Nikos at
Tue Dec 2 23:58:53 PST 2008

Thank you for your help!

some additional questions:

1) is there any way to give the root password once? i tried this:

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

> 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}.

More information about the freebsd-questions mailing list