On Thu, 4 Mar 2004 [EMAIL PROTECTED] wrote: > On 2004-03-04 18:02, Takuma Murakami wrote: > > > > Perhaps there should be a switch that says "if the display already > > > exists, exit silently". > > I agree. We should have an option like "-silent" or "-quiet". > > That's not quite it -- I want to ignore a "display already exists" > error, but if some other fatal error prevents XWin from loading I want > to know about it (say, via the dialog box).
The do something like this: export DISPLAY=:0 if ! xdpyinfo >/dev/null 2>&1; then XWin $DISPLAY $options fi xterm bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723 Chemnitzer Linux-Tag 2004 - 6. und 7. März 2004 http://www.tu-chemnitz.de/linux/tag