view etc/editclient.sh @ 2584:96d5f81e234f

[xemacs-hg @ 2005-02-14 03:40:45 by vins] Security fixes for CAN-2005-0100.
author vins
date Mon, 14 Feb 2005 03:40:45 +0000
parents 3ecd8885ac67
children
line wrap: on
line source

#!/bin/sh
if gnuclient -batch -eval t >/dev/null 2>&1; then
  exec gnuclient ${1+"$@"}
else
  xemacs -unmapped -f gnuserv-start &
  until gnuclient -batch -eval t >/dev/null 2>&1
  do
     sleep 1
  done
  exec gnuclient ${1+"$@"}
fi