in reply to How to detect X?
You could simply try the X version first. If the X server fails to appear, exec returns with an error -- the only way exec can return. Then try the command-line version.
exec "$bin/$name.X", @args; exec "$bin/$name.cmd", @args;
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to detect X?
by Anonymous Monk on Feb 21, 2005 at 10:10 UTC | |
Re^2: How to detect X?
by blazar (Canon) on Feb 21, 2005 at 09:39 UTC |