HP3000-L Archives

October 1998, Week 5

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:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Fri, 30 Oct 1998 00:00:07 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
Keven wrote...

>1. Fix STREAM subsystem to recognize VARs on the job card.
>   Then I don't have to hard code account names in the jobs.
>        !JOB  TEST,MGR.!HPACCOUNT
>        !comment
>        !EOJ

Not meaning to reinvent STREAMX and similar tools (which I never
had the pleasure to use so far) but you might use this workaround:

 !JOB TEST,MGR.@ACCT@
 !comment
 !EOJ

 :/bin/sed "1s/@ACCT@/!HPACCOUNT" < yourjob > tempjob
 :STREAM TEMPJOB
 :purge tempjob,temp

The cryptic sed command (hopefully correct from memory only) will
(s)ubstitue the @ACCT@ string in line 1 by your logon acct name.
Same trick should also be able to work on more than just line one.

>Thoughts?

Hmmm. Maybe too much Posix lately ;-)

Lars.

ATOM RSS1 RSS2