On Thu, Mar 02, 2000 at 08:54:33PM -0500, John P. Verel wrote:
>
> 3-The Red Hat sample.urlview has the following command:
> to invoke for selected URL
> COMMAND netscape -remote 'openURL(%s)'
> I get an error message if Netscape is not open; works only with
> Netscape running.
>
> Question: How to get to launch Netscape if not open and/or same
> question for lynx?
>
I call this script:
#!/bin/sh
if [ -n "$DISPLAY" ]
then
if killall -0 netscape 2> /dev/null;
then
netscape -remote "openURL($1)"
else
netscape $1 &
fi
else
lynx $1
fi
--
(T.) Michael Sanders internet: [EMAIL PROTECTED]
Physics Department URL: http://www-personal.umich.edu/~sanders
University of Michigan phone: 734/936-0799
Ann Arbor, MI 48109-1120 FAX: 734/764-6843