HP3000-L Archives

October 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ron Wuerth <[log in to unmask]>
Reply To:
Ron Wuerth <[log in to unmask]>
Date:
Tue, 23 Oct 2001 17:11:41 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (82 lines)
Bing!  Thank you Ken!

:-)

(and Mark and Jeff! :-)

Ron

-----Original Message-----
From: Ken Hirsch [mailto:[log in to unmask]]
Sent: Tuesday, October 23, 2001 5:03 PM
To: Ron Wuerth; [log in to unmask]
Subject: Re: Re: mpe scripting and file extracts


$ cat test.awk
BEGIN {
larry = "curly"
system("callci setvar joe \\'" larry "\\'")
system("callci showvar joe");
}
$ awk -f test.awk
JOE = curly
$
----- Original Message -----
From: "Ron Wuerth" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, October 23, 2001 4:52 PM
Subject: Re: mpe scripting and file extracts


> But....the rub is...we have to set a CI variable to
> the value of an awk variable (which may be a string).
>
> -----Original Message-----
> From: Mark Wonsil [mailto:[log in to unmask]]
> Sent: Tuesday, October 23, 2001 4:48 PM
> To: 'VANCE,JEFF (HP-Cupertino,ex1)'; 'Ron Wuerth';
> [log in to unmask]
> Subject: RE: [HP3000-L] mpe scripting and file extracts
>
>
> This is FAR more elegant.  But if you are setting the variable a string,
> there's some funky thing you have to do.
>
> This works:
> {}
> END {
>   system("callci SETVAR TESTING 0")
>   system("")
> }
>
> This doesn't:
>
> {}
> END {
>   system("callci SETVAR TESTING 'test'")
>   system("")
> }
> shell/iX> awk -f test.awk test.awk
> SETVAR TESTING test
>                ^
> Variable name encountered, but variable is not defined. (CIERR 9805)
>
> I tried a few variations using \" and such, but the callci seems to eat my
> double-quotes.  Jeff may know the answer here.
>
> Mark
> > -----Original Message-----
> > Is it possible to use a system(callci(setvar...)) command?
> >
> >  Jeff
> >
> > > The one glitch is I can't get the value back into
> > > the MPE CI.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2