#!/bin/csh -f

##################################################################
# Select browser software

# For Animal Logic
# setenv NS_PROG ns3

# For everyone else
setenv NS_PROG netscape

##################################################################
# This would seem to be the best way (checking for the lock file)
# but may not work for ancient versions of netscape

# if ( -l $HOME/.netscape/lock ) then
#	$NS_PROG -noraise -remote openURL\($*,new-window\)
# else
#	$NS_PROG $* &
# endif

##################################################################
# So you might prefer this way (check for process of given name)

ps -e | grep $NS_PROG > /dev/null
if ( $status ) then
	$NS_PROG $* &
else
	$NS_PROG -noraise -remote openURL\($*,new-window\)
endif

