Thread View: comp.os.os2.networking.tcp-ip
4 messages
4 total messages
Started by Bob Whitehouse
Fri, 15 Dec 1995 10:17
Getting started with OS/2 REXX FTP API
Author: Bob Whitehouse
Date: Fri, 15 Dec 1995 10:17
Date: Fri, 15 Dec 1995 10:17
38 lines
1431 bytes
1431 bytes
This is probably FAQ material, so aplogies in advance.
I am trying to automate a routine FTP operation using the
OS/2 REXX FTP API (as usual without the manuals).
I have issued all the API calls in a sensible order (according to
the online manual) ;
FtpLoadFuncs()
FtpSetUser()
FtpChDir()
FtpPut()
FtpLogoff()
This does not work (bombs at the FtpChdir()), and I can see no evidence
of any FTP call being placed.
Am I missing something obvious ? Should there be an FtpOpen() call ?
TIA
Bob
--
LARK <| "Reasons to be
1948 /| Cheerful"
/ |_
/ |\ \ Bob Whitehouse
/ | \ | bob@mrn.bt.co.uk
o/o___| \|
__8_8___|___\
| /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Getting started with OS/2 REXX FTP API
Author: Leo Ekholm
Date: Fri, 15 Dec 1995 18:42
Date: Fri, 15 Dec 1995 18:42
37 lines
1355 bytes
1355 bytes
In <4ari0g$3lv@pheidippides.axion.bt.co.uk>, Bob Whitehouse <bob@mrn.bt.co.uk> writes: >I have issued all the API calls in a sensible order (according to >the online manual) ; > > FtpLoadFuncs() > > FtpSetUser() > > FtpChDir() > > FtpPut() > > FtpLogoff() > >This does not work (bombs at the FtpChdir()), and I can see no evidence >of any FTP call being placed. > Bob, Check your parameters in the function call once more. You have a correct sequence of functions. Here is an extract from my working program: call RxFuncAdd "FtpLoadFuncs","RXFTP","FtpLoadFuncs" r1 = FtpLoadFuncs() userid = 'anonymous' passwd = 'anonymous' host = '123.123.123.123' /* or use a name */ transfertype = 'Ascii' rc = ftpsetuser(host,userid,passwd,acct) rc = ftpPut(pyyfile,pyyremo,transfertype) rc = ftplogoff() -Leo Ekholm
Re: Getting started with OS/2 REXX FTP API
Author: Marten Feldtmann
Date: Fri, 15 Dec 1995 19:28
Date: Fri, 15 Dec 1995 19:28
28 lines
1146 bytes
1146 bytes
In article <4ari0g$3lv@pheidippides.axion.bt.co.uk>, Bob Whitehouse <bob@mrn.bt.co.uk> wrote: >This is probably FAQ material, so aplogies in advance. > >I am trying to automate a routine FTP operation using the >OS/2 REXX FTP API (as usual without the manuals). > >I have issued all the API calls in a sensible order (according to >the online manual) ; > > FtpLoadFuncs() > > FtpSetUser() > > FtpChDir() > > FtpPut() > > FtpLogoff() > >This does not work (bombs at the FtpChdir()), and I can see no evidence >of any FTP call being placed. > >Am I missing something obvious ? Should there be an FtpOpen() call ? This should be ok ... Marten
Re: Getting started with OS/2 REXX FTP API (I've cracked it !)
Author: Bob Whitehouse
Date: Mon, 18 Dec 1995 17:30
Date: Mon, 18 Dec 1995 17:30
14 lines
1027 bytes
1027 bytes
Its OK - It was a silly typo, all is now working
--
LARK <| "Reasons to be
1948 /| Cheerful"
/ |_
/ |\ \ Bob Whitehouse
/ | \ | bob@mrn.bt.co.uk
o/o___| \|
__8_8___|___\
| /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads