[HECnet] Easiest way to do 'sed' type search and replace on VMS...

Sampsa Laine sampsa at mac.com
Fri Feb 8 18:14:12 PST 2013


{RHESUS$} @phonedir gewt
%DCL-E-OPENIN, error opening GEWT::"29=" as input
-RMS-E-ACC, ACP file access failed
-SYSTEM-F-UNREACHABLE, remote node is not currently reachable
{RHESUS$} @phonedir missy
%DCL-E-OPENIN, error opening MISSY::"29=" as input
-RMS-E-ACC, ACP file access failed
-SYSTEM-F-UNREACHABLE, remote node is not currently reachable
{RHESUS$} 




sampsa






On 9 Feb 2013, at 04:11, Sampsa Laine <sampsa at mac.com> wrote:

I think I already do..


sampsa






On 9 Feb 2013, at 04:10, Cory Smelosky <b4 at gewt.net> wrote:


On 8 Feb 2013, at 21:09, Sampsa Laine <sampsa at mac.com> wrote:

Speaking of services running on RHESUS, does anybody else want their node to be included in the phone directory at http://rhesus.sampsa.com/phonedir/hecnetdir.txt

It's polled every 5 minutes I think so it's not a huge use of your bandwidth   

Probe GEWT and MISSY


sampsa






On 9 Feb 2013, at 04:05, Sampsa Laine <sampsa at mac.com> wrote:

Yes, good idea, but not tonight, it's 4am in Beirut.


sampsa






On 9 Feb 2013, at 04:02, Ian McLaughlin <ian at platinum.net> wrote:

2 columns so the page isn't so long? :)

Ian

On 2013-02-08, at 5:59 PM, Sampsa Laine <sampsa at mac.com> wrote:

Actually the dozen lines of python is doing it quite nicely now:

http://rhesus.sampsa.com/cgi-bin/hecnetinfo/hecnetinfo.com


sampsa






On 9 Feb 2013, at 03:56, Johnny Billquist <bqt at softjar.se> wrote:

You know, you could just pull the file with all nodes from MIM, instead of generating it yourself. I can even provide it in some format you like, and then it will be generated automatically whenever I update my node database...

	Johnny

On 2013-02-09 02:52, Sampsa Laine wrote:
Trying to figure out what's doing that.

I'm probably actually going to make it an html table.....


sampsa






On 9 Feb 2013, at 03:51, Ian McLaughlin <ian at platinum.net> wrote:

Does it have to be double-spaced?

Ian

On 2013-02-08, at 5:34 PM, Sampsa Laine <sampsa at mac.com> wrote:

What do you guys think of the new look:

http://rhesus.sampsa.com/cgi-bin/hecnetinfo/hecnetinfo.com

I'll probably work a bit more on the formatting, am a bit sleep deprived and hung over at the moment though.

sampsa






On 9 Feb 2013, at 03:29, Johnny Billquist <bqt at softjar.se> wrote:

On 2013-02-09 02:26, Sampsa Laine wrote:
That's pretty nifty - but I realised that with a bit of python I can strip out the stuff that isn't really of interest to people such as the interface and next node etc.

Thanks for the help though, TECO still looks like modem line noise to me..:)

Of course, stripping off the noise in the line is just a few additional characters to that TECO program, you know... ;-)

	Johnny



sampsa






On 9 Feb 2013, at 03:21, Johnny Billquist <bqt at softjar.se> wrote:

On 2013-02-09 02:06, Sampsa Laine wrote:
Crap, just realised this won't work, I need to duplicate the strings i.e. one for the href, one for the actual text.

I'm just gonna write a little python script to do it..

This is what I was wondering already initially, hence my question about if you didn't want a little more than just the <a> for the tag...

Anyway, TECO to the rescue...

Hold on to your hat. Were we go. A complete TECO program for this. Replace all dollar signs with ESCAPE.

<fs($(<a href="hecnetinfo.com?q=$;.UAS)$-CQA,.XAI">$GAI</a>$>EX$$

Clear as a spring rain.

Let me know if you want me to explain it... ;-)

	Johnny

--
Johnny Billquist                                   || "I'm on a bus
                                                ||   on a psychedelic trip
email: bqt at softjar.se                         ||   Reading murder books
pdp is alive!                                         ||   tryin' to stay hip" - B. Idol



--
Johnny Billquist                                   || "I'm on a bus
                                                ||   on a psychedelic trip
email: bqt at softjar.se                         ||   Reading murder books
pdp is alive!                                         ||   tryin' to stay hip" - B. Idol



---
Filter service subscribers can train this email as spam or not-spam here:     http://my.email-as.net/spamham/cgi-bin/learn.pl?messageid=F4D2A6A6725811E2857C753993ED0201




-- 
Johnny Billquist                                   || "I'm on a bus
                                                    ||   on a psychedelic trip
email: bqt at softjar.se                         ||   Reading murder books
pdp is alive!                                         ||   tryin' to stay hip" - B. Idol



---
Filter service subscribers can train this email as spam or not-spam here:     http://my.email-as.net/spamham/cgi-bin/learn.pl?messageid=4EF31A3C725C11E2857C753993ED0201



More information about the Hecnet-list mailing list