HP3000-L Archives

May 2000, Week 1

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:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Tue, 2 May 2000 14:50:34 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
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

ATOM RSS1 RSS2