On 12/29/2011 11:37 AM, Steve Davidson wrote:
Brian,
".eqs." is a simple test for equality for strings. ".eq." is the
version for non-string (integer) values.
Multinet circuits are in the form of "TCP-x-y". Both "x" and "y" are
assignable and default to zero (0). I have been using "x" to denote
physical circuit and "y" to denote area end-point. This way I no longer
have to remember (or guess) what the other end is. SG1:: only has one
(1) NIC so in my case "x" is always zero (0).
DECnet LAN circuits are in the form of xxA-n, where "xx" is the
controller type, and "n" is the physical unit of that type (starting at
zero (0)).
Ok, then things work as I expect. :-D
Thanks!
-brian
Brian,
".eqs." is a simple test for equality for strings. ".eq." is the
version for non-string (integer) values.
Multinet circuits are in the form of "TCP-x-y". Both "x" and "y" are
assignable and default to zero (0). I have been using "x" to denote
physical circuit and "y" to denote area end-point. This way I no longer
have to remember (or guess) what the other end is. SG1:: only has one
(1) NIC so in my case "x" is always zero (0).
DECnet LAN circuits are in the form of xxA-n, where "xx" is the
controller type, and "n" is the physical unit of that type (starting at
zero (0)).
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 11:25 AM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] DCL Help needed
On 12/29/2011 11:17 AM, Steve Davidson wrote:
Steal and steal often is my motto :-)
Take whatever you need! The new version will be better commented and
not require the reboot. I will place a copy of the old version of the
data file (it matches this version) in the same directory.
I'm assuming .eqs. is rather limited (say the way = is in bash)?
Is there any sort of regex style matching available?
Short of that, is it fair to say that all circuit names in the output of
show known circuits will always be in the form of XXX-N for non-multinet
tunnels?
-brian
On 12/29/2011 11:17 AM, Steve Davidson wrote:
Steal and steal often is my motto :-)
Take whatever you need! The new version will be better commented and
not require the reboot. I will place a copy of the old version of the
data file (it matches this version) in the same directory.
I'm assuming .eqs. is rather limited (say the way = is in bash)?
Is there any sort of regex style matching available?
Short of that, is it fair to say that all circuit names in the output of show known circuits will always be in the form of XXX-N for non-multinet tunnels?
-brian
Steal and steal often is my motto :-)
Take whatever you need! The new version will be better commented and
not require the reboot. I will place a copy of the old version of the
data file (it matches this version) in the same directory.
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 11:14 AM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] DCL Help needed
Wow, that's pretty much exactly what I needed to get started, thanks!
-brian
On 12/29/2011 11:02 AM, Steve Davidson wrote:
Brian,
MWATCH.COM is in my home directory on RIFTER::. Any questions just
ask.
Enjoy!
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 10:39 AM
To: hecnet at Update.UU.SE
Subject: [HECnet] DCL Help needed
Ok, so if I were doing this in Korn or Bash I'd be done by now. :-D
I've found search, i've figured out how to redirect output and input,
so
i've got some basics figured out.
What I need to figure out now is how to walk a text file line by line
and pull out specific records. Normally I would use awk for such a
task.
How would I go about doing this from within a DCL script?
-brian
Wow, that's pretty much exactly what I needed to get started, thanks!
-brian
On 12/29/2011 11:02 AM, Steve Davidson wrote:
Brian,
MWATCH.COM is in my home directory on RIFTER::. Any questions just ask.
Enjoy!
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 10:39 AM
To: hecnet at Update.UU.SE
Subject: [HECnet] DCL Help needed
Ok, so if I were doing this in Korn or Bash I'd be done by now. :-D
I've found search, i've figured out how to redirect output and input, so
i've got some basics figured out.
What I need to figure out now is how to walk a text file line by line
and pull out specific records. Normally I would use awk for such a task.
How would I go about doing this from within a DCL script?
-brian
Correct!
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 11:02 AM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] DCL Help needed
I'm assuming mwatch.com in your home dir is it?
-brian
On 12/29/2011 10:58 AM, Steve Davidson wrote:
Brian,
I will copy the MultiWatch DCL script to RIFTER::. Take a look at
that.
It should have everything you need!
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 10:39 AM
To: hecnet at Update.UU.SE
Subject: [HECnet] DCL Help needed
Ok, so if I were doing this in Korn or Bash I'd be done by now. :-D
I've found search, i've figured out how to redirect output and input,
so
i've got some basics figured out.
What I need to figure out now is how to walk a text file line by line
and pull out specific records. Normally I would use awk for such a
task.
How would I go about doing this from within a DCL script?
-brian
I'm assuming mwatch.com in your home dir is it?
-brian
On 12/29/2011 10:58 AM, Steve Davidson wrote:
Brian,
I will copy the MultiWatch DCL script to RIFTER::. Take a look at that.
It should have everything you need!
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 10:39 AM
To: hecnet at Update.UU.SE
Subject: [HECnet] DCL Help needed
Ok, so if I were doing this in Korn or Bash I'd be done by now. :-D
I've found search, i've figured out how to redirect output and input, so
i've got some basics figured out.
What I need to figure out now is how to walk a text file line by line
and pull out specific records. Normally I would use awk for such a task.
How would I go about doing this from within a DCL script?
-brian
Brian,
MWATCH.COM is in my home directory on RIFTER::. Any questions just ask.
Enjoy!
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On
Behalf Of Brian Hechinger
Sent: Thursday, December 29, 2011 10:39 AM
To: hecnet at Update.UU.SE
Subject: [HECnet] DCL Help needed
Ok, so if I were doing this in Korn or Bash I'd be done by now. :-D
I've found search, i've figured out how to redirect output and input, so
i've got some basics figured out.
What I need to figure out now is how to walk a text file line by line
and pull out specific records. Normally I would use awk for such a task.
How would I go about doing this from within a DCL script?
-brian