Subject: | |
From: | |
Reply To: | |
Date: | Tue, 2 May 2000 14:50:34 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
At 5:12 PM -0400 5/2/00, [log in to unmask] wrote:
>I am wanting to set at variable in a jobstream that = the ip address of
>hpstreamedby but haven't figured out how.
>
>Thanks in advance for your help
This is a "bare-bones" thingy to which you should add lots of error
checking, yada, yada, yada. But it works...
Create a command file (or UDC) called, for example, "strm" which does the
following:
parm jobfile
print !jobfile;start=1;end=1 > tmpfile
echo !!setvar streamer_ip "!HPSTDIN_NETWORK_ADDR" >> tmpfile
print !jobfile;start=2 >> tmpfile
stream tmpfile
purge tmpfile,temp
Then, instead of using MPE's STREAM command, use STRM.
This will simply insert a SETVAR statement into the job, whatever job you
pass it, and your (the streamer's) IP address will be available to the job.
Enjoy!
Barry Lake [log in to unmask]
Allegro Consultants, Inc. www.allegro.com
(408)252-2330
|
|
|