to shell (and X window System) wizards.




would this works, say in .zlogin, to say that X is up:

if [ -e /tmp/.X11-unix/X0 ]
then
echo "X is up."
exit 0;
else
echo "No X yet"
exit 1;
fi

or is there something more clever?

--
Gary Kline kline@xxxxxxxxxxx www.thought.org Public Service Unix
http://jottings.thought.org http://transfinite.thought.org


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Newbie Three
    ... echo "tesgform"; ... echo "suspected alien invasion case topic table"; ... echo "suspected alien invasion unknown group name"; ...
    (comp.lang.php)
  • Newbie Three
    ... echo "tesgform"; ... echo "suspected alien invasion case topic table"; ... echo "suspected alien invasion unknown group name"; ...
    (comp.lang.php)
  • ToDo list utility - suggestions/optimizations/refinements wanted
    ... For the past couple of days, I've been working on this todo list script and I'm really happy with the way it works, but wanted to post it here before I go any futher, in case anybody had suggestions for optimizations or style errors. ... echo "File written successfully." ...
    (comp.unix.shell)
  • Re: Shell Script to Remove Old Files
    ... Note it needs a TSM server: ... # Verify command line arguments ... echo "\nError: $STARTDIR does not exist.\n" ...
    (comp.unix.admin)
  • Re: Making bootable USB keys
    ... mv $TMPDOC $TMPDOC.old ... echo -n " initializing partition table " ... echo "convert tree $tree image $imagefile" ...
    (freebsd-hackers)