Subject: | |
From: | |
Reply To: | |
Date: | Mon, 3 May 1999 17:34:22 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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)
>
|
|
|