rexx and ftp 
Author Message
 rexx and ftp

An: INTERNET--IBMMAIL

Von:  Manfred Himmler, Abt. ISN
Betreff: rexx and ftp
                                     _|||_
                                     >O O<
----------------------------------oOo-(_)-oOo-----------------------------
Hi, all

I'm running REGINA REXX 0.08e under Windows NT4.0.
With REXX i will establish a connection to an IBM RS/6000 with AIX
via ftp and execute some ftp-commands.

I tried it with queueing the ftp-commands like:
          queue userid
          queue passwd
          queue 'PROMPT'
          queue 'mget *'
          queue 'QUIT'
          address command 'FTP HOST'

When running the script the ftp prompt me for the userid,
i cannot run it automatically.

Hope anyone has a solution.

best regards/Mit freundlichem Gruss          Phone: +49 (0)711/5209-339
Manfred Himmler                              Fax:   +49 (0)711/5209-615

IMI Norgren-Herion Fluidtronic GmbH & Co. KG



Sat, 24 Feb 2001 03:00:00 GMT  
 rexx and ftp

Quote:

> I'm running REGINA REXX 0.08e under Windows NT4.0.
> With REXX i will establish a connection to an IBM RS/6000 with AIX
> via ftp and execute some ftp-commands.

> I tried it with queueing the ftp-commands like:
>           queue userid
>           queue passwd
>           queue 'PROMPT'
>           queue 'mget *'
>           queue 'QUIT'
>           address command 'FTP HOST'
> When running the script the ftp prompt me for the userid,
> i cannot run it automatically.

Shouldn't it be:

   Push 'QUIT'
   Push 'MGET *'
   Push 'PROMPT'
   Push passwd
   Push userid
   Address COMMAND 'FTP HOST'

In other words, in LIFO sequence?

Regards,

       Member of RexxLA (and editor of its newsletter)



Sat, 24 Feb 2001 03:00:00 GMT  
 rexx and ftp
With Windows FTP has a -S option which allows you to get your
ftp commands from a text file.

example:

 ftp_cmd = 'FTP -I -S:'ftp_fnft from_addr
 parse lower var ftp_cmd ftp_cmd
 ftp_cmd

Where ftp_fnft has the name of the input FTP command file
  and from_addr has the location of the FTP server

                                                   Julio

------------------------------------------------------------------------

Quote:
>>>>> ON Tue, 8 Sep 1998 10:56:07 EDT       SORTED: 19980908 YOU WROTE:

> An: INTERNET--IBMMAIL

> Von:  Manfred Himmler, Abt. ISN
> Betreff: rexx and ftp
>                                      _|||_
>                                      >O O<
> ----------------------------------oOo-(_)-oOo-----------------------------
> Hi, all

> I'm running REGINA REXX 0.08e under Windows NT4.0.
> With REXX i will establish a connection to an IBM RS/6000 with AIX
> via ftp and execute some ftp-commands.

> I tried it with queueing the ftp-commands like:
>           queue userid
>           queue passwd
>           queue 'PROMPT'
>           queue 'mget *'
>           queue 'QUIT'
>           address command 'FTP HOST'

> When running the script the ftp prompt me for the userid,
> i cannot run it automatically.

> Hope anyone has a solution.

> best regards/Mit freundlichem Gruss          Phone: +49 (0)711/5209-339
> Manfred Himmler                              Fax:   +49 (0)711/5209-615

> IMI Norgren-Herion Fluidtronic GmbH & Co. KG



Sat, 24 Feb 2001 03:00:00 GMT  
 rexx and ftp
Some FTPs accept input from a script, and some of those will accept the
password from the script.
Quote:
> -----Original Message-----

> Sent: Tuesday, September 08, 1998 10:56 AM

> Subject: rexx and ftp

> An: INTERNET--IBMMAIL

> Von:  Manfred Himmler, Abt. ISN
> Betreff: rexx and ftp
>                                      _|||_
>                                      >O O<
> ----------------------------------oOo-(_)-oOo-----------------
> ------------
> Hi, all

> I'm running REGINA REXX 0.08e under Windows NT4.0.
> With REXX i will establish a connection to an IBM RS/6000 with AIX
> via ftp and execute some ftp-commands.

> I tried it with queueing the ftp-commands like:
>           queue userid
>           queue passwd
>           queue 'PROMPT'
>           queue 'mget *'
>           queue 'QUIT'
>           address command 'FTP HOST'

> When running the script the ftp prompt me for the userid,
> i cannot run it automatically.

> Hope anyone has a solution.



Sat, 24 Feb 2001 03:00:00 GMT  
 rexx and ftp
I don't see any difference in the stack contents between the
two methods :-

----------

Quote:

>Sent:  08 September 1998 16:16
...
>> I tried it with queueing the ftp-commands like:
>>           queue userid
>>           queue passwd
>>           queue 'PROMPT'
>>           queue 'mget *'
>>           queue 'QUIT'
>>           address command 'FTP HOST'
...
>Shouldn't it be:

>   Push 'QUIT'
>   Push 'MGET *'
>   Push 'PROMPT'
>   Push passwd
>   Push userid
>   Address COMMAND 'FTP HOST'

>In other words, in LIFO sequence?

>Regards,

>      Member of RexxLA (and editor of its newsletter)

Rupert


Sat, 24 Feb 2001 03:00:00 GMT  
 rexx and ftp

Quote:

>>           queue userid
>>           queue passwd
>>           queue 'PROMPT'
>>           queue 'mget *'
>>           queue 'QUIT'
>>           address command 'FTP HOST'
>Shouldn't it be:
>   Push 'QUIT'
>   Push 'MGET *'
>   Push 'PROMPT'
>   Push passwd
>   Push userid
>   Address COMMAND 'FTP HOST'
>In other words, in LIFO sequence?

Well, those are different ways to achieve the same result since "push" and
"queue" are both valid Rexx instructions, and they stack the data in
opposite orders.

Of course, there would be a difference if there were anything on the stack
to begin with.
--

------ http://www.comlab.ox.ac.uk/oucl/users/ian.collier/imc.html

New to this group?  Answers to frequently-asked questions can be had from
http://rexx.hursley.ibm.com/rexx/ .



Sun, 25 Feb 2001 03:00:00 GMT  
 rexx and ftp


% >>           queue userid
% >>           queue passwd
% >>           queue 'PROMPT'
% >>           queue 'mget *'
% >>           queue 'QUIT'
% >>           address command 'FTP HOST'
%
% >Shouldn't it be:
%
% >   Push 'QUIT'
% >   Push 'MGET *'
% >   Push 'PROMPT'
% >   Push passwd
% >   Push userid
% >   Address COMMAND 'FTP HOST'
%
% >In other words, in LIFO sequence?
%
% Well, those are different ways to achieve the same result since "push" and
% "queue" are both valid Rexx instructions, and they stack the data in
% opposite orders.
%
% Of course, there would be a difference if there were anything on the stack
% to begin with.

But not if you don't happen to have an ftp environment that reads stuff
off the stack....
--

Patrick TJ McPhee
East York  Canada



Mon, 26 Feb 2001 03:00:00 GMT  
 rexx and ftp

Quote:
>But not if you don't happen to have an ftp environment that reads stuff
>off the stack....

That might make my observation academic but it doesn't make it untrue. :-)
--

------ http://www.comlab.ox.ac.uk/oucl/users/ian.collier/imc.html

New to this group?  Answers to frequently-asked questions can be had from
http://rexx.hursley.ibm.com/rexx/ .



Mon, 26 Feb 2001 03:00:00 GMT  
 rexx and ftp

Quote:

> I tried it with queueing the ftp-commands like:
>           queue userid
>           queue passwd
>           queue 'PROMPT'
>           queue 'mget *'
>           queue 'QUIT'
>           address command 'FTP HOST'

The stack in Regina is strictly internal to Regina, so stacking responses
and then calling ANY command won't work. As far as I know NT has no
stack.   I think you can do what you're trying to do with a PIPE or file
as input to FTP, but I haven't tried it. (Works in UNIX, but NT's version
of FTP may be more primitive.)

I have read here that IBM has a way of instrumenting FTP with REXX -- I
think this comes with Object REXX. I don't know if it is available
separately, or if it would work with Regina.

--

Please remove "no.spam." before replying.



Tue, 27 Feb 2001 03:00:00 GMT  
 rexx and ftp

Quote:
>I'm running REGINA REXX 0.08e under Windows NT4.0.
>With REXX i will establish a connection to an IBM RS/6000 with AIX via
>ftp and execute some ftp-commands.
>I tried it with queueing the ftp-commands like:
>          queue userid
>          queue passwd
>          queue 'PROMPT'
>          queue 'mget *'
>          queue 'QUIT'
>          address command 'FTP HOST'
>When running the script the ftp prompt me for the userid,
>i cannot run it automatically.
>Hope anyone has a solution.

Under M$ the FTP command has a -s switch that is the equivalent to the
unix .netrc file. Therefore make a file  ftpget with the following:

userid
passwd
prompt
mget *

then run:

ftp -s:ftpget HOSTNAME

that should do what you need.

thanks,
Tom Dodge
______________________________________________________________

Dynamic Information Systems
3808 Old College Rd.
Bryan, TX  77801
409 846 4565
http://www.disisit.com
______________________________________________________________
    What do you want to reinstall today?



Wed, 28 Feb 2001 03:00:00 GMT  
 rexx and ftp
In my startup.cmd I have the following line:

call LINEOUT 'IPLdate.DAT', 'IPL started on:'DATE('N')' at:'TIME('N')'',1

Warp4 fixpack 5
In all cases the level of RXUTILS is 1.72 and REXXLIB is 1.33a If I use
standard REXX all is O.K.
If I use obiect REXX level 6.00 dated 3 Dec. 1996 the IPLDATE.DAT file is
created empty (0 length).

Why?
--
-----------------------------------------------------------

Using MR/2 ICE v1.50  Reg: #20729.                        
at 19:48(+0200, relative to GMT) on Tuesday, 22 Sep 1998  
Under the finest OS available.... --> OS/2 WARP 4 !        
-----------------------------------------------------------



Sun, 11 Mar 2001 03:00:00 GMT  
 rexx and ftp

Quote:

> In my startup.cmd I have the following line:

> call LINEOUT 'IPLdate.DAT', 'IPL started on:'DATE('N')' at:'TIME('N')'',1

> Warp4 fixpack 5
> In all cases the level of RXUTILS is 1.72 and REXXLIB is 1.33a If I use
> standard REXX all is O.K.
> If I use obiect REXX level 6.00 dated 3 Dec. 1996 the IPLDATE.DAT file is
> created empty (0 length).

> Why?
> --
> -----------------------------------------------------------

> Using MR/2 ICE v1.50  Reg: #20729.
> at 19:48(+0200, relative to GMT) on Tuesday, 22 Sep 1998
> Under the finest OS available.... --> OS/2 WARP 4 !
> -----------------------------------------------------------

This behaviour is fixed since Warp4 fixpack 6.
--
Christian Michel
REXX Development


Mon, 12 Mar 2001 03:00:00 GMT  
 rexx and ftp


Quote:
>In my startup.cmd I have the following line:
>call LINEOUT 'IPLdate.DAT', 'IPL started on:'DATE('N')' at:'TIME('N')'',1
>Warp4 fixpack 5
>In all cases the level of RXUTILS is 1.72 and REXXLIB is 1.33a If I use
>standard REXX all is O.K.
>If I use obiect REXX level 6.00 dated 3 Dec. 1996 the IPLDATE.DAT file is
> created empty (0 length).
>Why?

I found the answer by myself:
I have changed the above line with :

IPL = DATE('N') || ' at ' || TIME('N')
call LINEOUT 'IPLdate.DAT', 'IPL started on: ' || IPL,1

it seems to me that OREXX does not use the space as concatenation
operator.

--
-----------------------------------------------------------

Using MR/2 ICE v1.50  Reg: #20729.
at 12:54(+0200, relative to GMT) on Thursday, 01 Oct 1998
Under the finest OS available.... --> OS/2 WARP 4 !
-----------------------------------------------------------



Mon, 19 Mar 2001 03:00:00 GMT  
 rexx and ftp

Quote:
>> >call LINEOUT 'IPLdate.DAT', 'IPL started on:'DATE('N')'
at:'TIME('N')'',1

>Why the two adjacent single-quotes at the end?  Rexx should turn
>those into ONE single-quote, thus making the total number uneven.
>This should result in error number 6 (Unmatched /* or quote).

I don't think Rexx should!  The argument to lineout ends in a
pair of apostrophes as you say - inside a literal string itself
delimited by apostrophes, it would represent an apostrophe
character within the literal string.

Outside of apostrophes, it represents a null string concatenated
to the value of TIME('N'), which should have no effect.

I'd be interested to see the exact error reported by Orexx.

<snip>

Quote:
>Unwarranted conclusion on false or insufficient premises.

A spot uncharitable, don't you think?

Rupert

--Don't ask me, I'm not omnicognisant!
--Om



Tue, 20 Mar 2001 03:00:00 GMT  
 
 [ 19 post ]  Go to page: [1] [2]

 Relevant Pages 

1. Rexx and FTP

2. IBM Object Rexx and FTP

3. rexx and FTP

4. REXX and FTP API's

5. REXX and FTP

6. Can Rexx issue ftp commands in OS/2?

7. using REXX with FTP under OS2

8. REXX and FTP

9. Squeak FTP site established: ftp://ftp.create.ucsb.edu/pub/Smalltalk/Squeak

10. My ftp site (ftp://ftp.iag.net/pub/clipper)

11. Rexx ftp problem

12. FTP in OS/390 MVS REXX

 

 
Powered by phpBB® Forum Software