Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion os2, ibm tcp/ip, FTP and redirected input
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ed Costello  
View profile  
 More options Oct 9 1992, 1:44 pm
Newsgroups: comp.os.os2.networking
From: coste...@vnet.ibm.com (Ed Costello)
Date: Fri, 9 Oct 1992 4:38:54 EDT (-500 GMT)
Local: Fri, Oct 9 1992 4:38 am
Subject: Re: os2, ibm tcp/ip, FTP and redirected input
In  <BvtnCq....@unx.sas.com>  k...@manzi.unx.sas.com (Paul Kent) writes:

>The bummer i am faced with os2 tcpip 1.2.1(refresh) is that he (ftp) seems
>to insist on opening the console to acquire the password so i cannot
>emded this ftp step inside a larger batch file that runs unattended

>You guessed, i am trying to implement a "os2 batch machine" where
>a community of HPUX workstations queue os2 command files up and they
>get processed on an os2 box and the results returned to the submitee

It's not clear to me whether you're executing ftp on OS/2 or ftp-ing
to an OS/2 machine.  I'm assuming you're executing ftp on an OS/2 machine.

I have a small daemon set up to ftp weather images off an internal server.
To do this I put an entry for the server in my \etc\hosts file:
9.xx.y.zzz      server.subdomain.ibm.com        weather
^ipaddr         ^real name                      ^alias

Then in my \etc\netrc file I have:
machine weather login anonymous password mcrweat...@costello.mcl.ibm.com macdef
wpics
lcd d:\\pub\\pictures\\weather
cd pub/weather
bin
get current.gif
get wxmap.gif
close
quit
(blank line here)

   Notes: the double backslashes are needed (WAD or not, I don't know) in the
          lcd command
         - this sets up two things:
           - automatic login to the machine called weather
           - a macro called wpics (invoked as $wpics at an ftp prompt)
The command that I execute in my daemon is:
        echo $wpics | ftp weather

Can you set up a netrc like the above or do you have security concerns that
prevent that?

-ed costello
__________________________________________________________________-ed costello
MVS/JES Information Development * Mid-Hudson Valley Programming Lab * IBM E.S.
vnet: costello at pokvmcr3         bitnet: costello@vnet
 mpn: e...@costello.mcl.ibm.com   internet: coste...@vnet.ibm.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.