[Info-vax] grep a nice one
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Fri Jan 29 06:19:36 EST 2010
In article <0e7b9cc9-e62c-413e-8c11-24b246f5696e at l30g2000yqb.googlegroups.com>, CY <christery at gmail.com> writes:
>> CY, why working on a 15+ years old distribution,
>> and not get the GNV freeware?
>> GNV has grep and many other standard U*x utilities.
>>
>> --
>> Joseph Huber,http://www.huber-joseph.de
>
>Thats what I got from downloading freeware cd1 from HP ver 8... called
>grep.zip anyways.
>looks like easyer to write a c program that makes that xml file with
>what I need soon,
>but was lazy and looked at what they did in ESX, and then i found grep
>in that .sh file.
>
>We dont use many extras, zip/unzip and an enhanced set def (cd.com) so
>was trying to
>just get grep working or something like that, and make it work in vax/
>alpha/ia
>using a dcl script that produces a xml file with system configuration
>for our helpdesk system.
>
>For the rest of the utilitys I dont eaven use half of whats in OVMS
>today, and those I use
>gets me confused... just using sda in 3 different envronments vith vms
>ranging from
>good old 4.5 (oh, retired that uVAX II one last summer) to th 8.3-H1
>or whatever is running on the blade.
>
>So no "ps -lax" or other curios *nix for me, "sho sys" will do ;)
>
>//CY
Always go about this the hard way??? Why not just learn a little DCL?
Here...
Call it: GET_BIOS_VERSION.COM
Execute: $ @GET_BIOS_VERSION.COM
$ IF "''F$trnlnm("SYS$PIPE","LNM$PROCESS_TABLE")'".NES.""
$ THEN
$ 1$: READ/END_OF_FILE=2$ SYS$PIPE LINE
$ WRITE SYS$OUTPUT "BIOS_VERSION=''F$element(2," ",F$edit(line,"compress"))'"
$ GOTO 1$
$ 2$: EXIT 1
$ ELSE
$ DEFINE/USER SYS$OUTPUT NL:
$ ANALYZE/SYSTEM
SET OUTPUT SYS$SCRATCH:$SDA$.$TMP$/SINGLE_COMMAND
CLUE CONF
EXIT
$ PIPE TYPE SYS$SCRATCH:$SDA$.$TMP$ | SEARCH SYS$PIPE "BIOS version" | @GET_BIOS_VERSION ; DELETEE SYS$SCRATCH:$SDA$.$TMP$;*
One file, one temporary file which is deleted.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
http://www.quirkfactory.com/popart/asskey/eqn2.png
Yeah. You know, it occurs to me that the best way you hurt rich people is by
turning them into poor people. -- Billy Ray Valentine
More information about the Info-vax
mailing list