#!/bin/sh echo \> .article.html cat >> .article.html echo \>> .article.html lynx .article.html < /dev/tty rm .article.html
次に、以下の行を .rnmacファイルに追加 (なければ作成)します:
W |readwebpost %C
これで、rnで投稿を読んでいるときに "W"を押せば、メッセージが Lynxに送られ、その中に含 まれているリンクが有効になります。
Larry W. Virdenは、かわりに Mosaicを起動し、既に Mosaicが動いている場合は、新しいもの を起動する代りに通信することもできる、以下の版を提供しました。 (上記と同様 、"readwebpost"のかわりに "goto-xm"を起動する rnのマクロを書くこともできます。)設定に ついて詳しくは、スクリプトのコメントを読んで下さい。
#! /bin/sh # goto-xm, by Joseph T. Buck電子メールおよびニュースを、実行中の Mosaicのセッションにパイプで送る perlスクリプト、 MosaicMail (URL http://www.oac.uci.edu/indiv/ehood/mhonarc.doc.html ),もご覧下さい。# Modified heavily by Larry W. Virden # Script for use with newsreaders such as trn. Piping the article # through this command causes xmosaic to pop up, pointing to the # article. If an existing xmosaic (version 1.1 or later) exists, # the USR1 method will be used to cause it to point to the correct # article, otherwise a new one will be started. # assumptions: ps command works as is on SunOS 4.1.x, may need changes # on other platforms. URL=`/bin/grep '^Message-ID:' | /bin/sed -e 's/.*.*//'` if [ "X$URL" = "X" ]; then echo "USAGE: $0 [goto] [once] < USENET_msg" >&2 exit 1 fi pid=`ps -xc | egrep '[Mm]osaic' | awk 'NR == 1 {print $1}'` p=`which Mosaic` gfile=/tmp/Mosaic.$pid $p "$URL" & if [ "$#" -gt 0 ] ; then if [ "$1" = "goto" -o "$1" = "same" ] ; then shift echo "goto" > $gfile else echo "newwin" > $gfile fi else echo "newwin" > $gfile fi /bin/awk 'END { printf "'"$URL"'" }' > $gfile trap "echo signal encountered" 30 kill -USR1 $pid exit 0