Re: FVWM: netscape

From: Richard Lister <ric_at_giccs.georgetown.edu>
Date: Mon, 02 Jun 1997 09:51:39 -0400

On Mon, 2 Jun 1997 14:01:11 +0100 (BST)
Graeme.McCaffery_at_astro.cf.ac.uk (Graeme McCaffery)
wrote concerning 'FVWM: netscape':
> does anyone have a script, like the one for tkgoodstuff
> that will send netscape a string that's highlighted.
>
>
> basically I thought I would use a function to send a message to an
> existing netscape or start up a new one with the hightlight text in question.
>
> does anyone already do this?

Grab xcb from ftp://www.x.org/contrib/utilities/ and use it in a
script like this:


#!/bin/sh
## Note: not fully tested

url=`xcb -S 0 && xcb -p 0`

if [ "$url" ] ; then
  netscape -remote openURL\("$url"\) >/dev/null 2>&1 \
    || exec netscape "$url" &
else
  exec netscape &
fi

exit 0


Then just call this script from a button.

Ric

Richard J Lister, Georgetown Institute for Cognitive and Computational Sciences
Georgetown University Medical Center, Washington, DC.
Phone: 202-687 2878
Email: ric_at_giccs.georgetown.edu
Web: http://www.giccs.georgetown.edu/
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Jun 02 1997 - 08:50:39 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST