HP3000-L Archives

May 1999, 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:
Jim Alton <[log in to unmask]>
Reply To:
Jim Alton <[log in to unmask]>
Date:
Mon, 3 May 1999 17:34:22 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (68 lines)
You might try the following:

If you have two seperate boxes, have the job stream test the HPSUSAN number
to determine which box it is running from.

If you are running on a single box, perhaps checking for HPACCOUNT will do
the trick.

In either case...  a technique often used is to redirect stdin for ftp.
Build two flat files that contain all the ftp commands you need, one for
production and one for test.  Let's call them FTPPROD and FTPTEST.  Then
your job would look something like....

!IF "!HPSUSAN" = "1920392843" THEN
!RUN FTP.ARPA.SYS;STDIN=FTPPROD.PUB.ACCOUNT
!ELSE
!RUN FTP.ARPA.SYS;STDIN=FTPTEST.PUB.ACCOUNT
!ENDIF

Good Luck,

Jim Alton
eSystem Solutions

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions, thoughts, ideas expressed in this message are entirely my own.





Mark Bixby wrote in message ...
>Jeff Brown writes:
>> We use MPE 5.5 and the FTP.ARPA.SYS program.  Our site has a domain name
>> server and our FTP "PUT" and "GET" actions connect to a remote host
>> using the domain name (e.g., host1.pnl.gov).
>>
>> On our test system only I would like to redirect the "PUT" and "GET"
>> actions without having to change the hardcoded domain names in batch
>> jobs.  I.E., if the batch job transmits a file to host1.pnl.gov I'd like
>> it to actually go to test1.pnl.gov.
>>
>> Is this possible?  How hard to accomplish?
>
>Maybe.  Easy.
>
>> What would it take?  Or where should I look to see how?
>
>Add the IP address for test1.pnl.gov to HOSTS.NET.SYS and give it a name of
>host1.pnl.gov.
>
>Make sure that /etc/hosts exists as a symbolic link pointing to
/SYS/NET/HOSTS.
>
>I know that the BIND/iX resolver routines will first look in /etc/hosts
before
>trying DNS.  But I've never tested this with the vanilla HP resolver
routines
>used by FTP.ARPA.SYS (i.e. hpgethostbyname).
>--
>Mark Bixby                      E-mail: [log in to unmask]
>Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
>District Information Services   1370 Adams Ave, Costa Mesa, CA, USA
92626-5429
>Technical Support               Voice: +1 714 438-4647
>"You can tune a file system, but you can't tune a fish." - tunefs(1M)
>

ATOM RSS1 RSS2