[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OpenVerse] netscape starter script



Here is an improved version of the netscape starter script for *nix
systems.  This one checks to see if an existing copy of netscape is
running.  Because of the proliferation of different names of netscape with
various installs, it can't look for "netscape" specifically.  This means
you can't use "netscape" in the name of the script, or it will find itself
and not work properly.  ;)

I call mine startns.sh...simply set that as your default browser in the OV
setup window.  BTW, you can also call this from the commandline to feed
new URL's to an existing netscape.  :)

startns.sh:

#!/bin/bash
a=`ps x | grep -i netscape |grep -v grep|wc -l`
if [ $a -eq 0 ]; then 
    netscape $1
else
    netscape -remote openURL\($1\)
fi

--
Sketch


-----------------------------------------------------------------
To unsubscribe to the OpenVerse mailing list send a message
to openverse-request@openverse.org with the following word
in the BODY of the message.

UNSUBSCRIBE

If you need assistance from a human, email cruise@openverse.org
-----------------------------------------------------------------