Subject: | |
From: | |
Reply To: | |
Date: | Fri, 18 Dec 1998 11:39:22 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Donna,
based on an older note by GStigers, I got this working:
[23] XEBHH2:FILE NETRC.XEPUB=NETRC.SCHMIDA.SYS (XEPUB is homegroup of SM)
[24] XEBHH2:sh
...
XEBHH2: /SYS/SCHMIDA [131] > callci 'RUN
FTP.ARPA.SYS;INFO="aaa.bbb.ccc.ddd";STDIN=FTPCMD' > FTPOUT
XEBHH2: /SYS/SCHMIDA [132] > cat FTPOUT
File Transfer Protocol [A0008H30] (C) Hewlett-Packard Co. 1990
220 HP ARPA FTP Server [A0008H27] (C) Hewlett-Packard Co. 1990
Connected to xebhh2.subloc.loc.com (aaa.bbb.ccc.ddd). (FTPINFO 40)
331 Password required for MANAGER.SYS. Syntax: userpass
230 User logged on
Remote system type is MPE/iX.
ftp>
cd /SYS/SCHMIDA
250 CWD file action successful.
ftp>
lcd /SYS/SCHMIDA
CWD is "/SYS/SCHMIDA".
Local directory is now "/SYS/SCHMIDA".
ftp>
put ./XX ./FTPXX
200 PORT command ok.
150 File: ./FTPXX;REC=-80,12,F,ASCII;DISC=12,1 opened; data connection will
be o
pened
226 Transfer complete.
960 bytes sent in 0.00 seconds (468.75 Kbytes/sec)
ftp>
quit
221 Server is closing command connection
END OF PROGRAM
XEBHH2: /SYS/SCHMIDA [133] > exit
logout
CWD is "/SYS/SCHMIDA".
[25] XEBHH2:[25] XEBHH2: print NETRC
machine aaa.bbb.ccc.ddd login MANAGER.SYS password
will_not_be_shown_here_guess_why
[26] XEBHH2: print FTPCMD
cd /SYS/SCHMIDA
lcd /SYS/SCHMIDA
put ./XX ./FTPXX
quit
and the files XX and FTPXX are identical now.
Similar processes must work as well. The important thing is that the FILE
NETRC.HOMEGROUP must be
redirected to the real (secure) location of the file. The FTP looks always
into the Homegroup of the User,
regardless what the NETRC file contains (MANAGER.SYS,SCHMIDA will work as
well to spare the lcd
command).
Hope that will help!
Best regards, Andreas Schmidt, CSC, Germany
[log in to unmask] on 12/18/98 12:18:36 AM
Please respond to [log in to unmask]
To: [log in to unmask]
cc: (bcc: Andreas Schmidt/HI/CSC)
Subject: another posix redirection question
(seems to be a good day for talking about such things....)
i just got this from one of my programmers...
shell/iX>
cat ftprgh.cmd #this is the desired file of
commands
open s0946u01
pwd
exit
shell/iX> ftp <ftprgh.cmd # here I try to redirect stdin
using "<"
producing the following err
FILE OPEN ERROR (PASCERR 692)
FILE IS '$STDINX'
ABORT: FTP.ARPA.SYS
NM SYS a.00a89288 dbg_abort_trace+$24
NM PUB 1d4.000fda34 P__PASCFERROR+$3e0
NM PROG b4.00022010 u_open_in_out+$a4
[1] + Done(134) ftp <ftprgh.cmd
6357119 Abort /SYS/ARPA/FTP
shell/iX>
===================
given today's thread, i believe i know the answer about
*why*
this isn't working (although feel free to tell me otherwise
:-)....
my real question is -- is there a work-around? this guy
wants
to stay in the shell, so returning to the ci isn't an
option. what
about using 'callci'? - d
--
Donna Garverick Sr. System Programmer
925-210-6631 [log in to unmask]
>>>MY opinions, not Longs Drug Stores'<<<
|
|
|