I hadn't considered curl. It does exist on z/OS, although as you
pointed out, that's not important now. wget does not exist on z/OS. I
don't like coding the user/password into the command, however. I guess
that I could read the ~/.netrc to get the information.

Also, just for learning, I'm considering replacing the entire script
with a Python program. It can do ftp using ftplib. I could also use it
to upload the results back to z/OS. And Python has a class which reads
the .netrc file as well.

Thanks for the idea.

On Tue, Jan 29, 2013 at 10:11 AM, Rick Troth <[email protected]> wrote:
>> What I'd like to be able to do is eliminate the need to write out
>> "file.to.transfer" and just somehow pipe it into the "tee" command
>> directly. I just don't see a way to do it.
>
> 'curl' can probably do what you want.
> That and 'wget' are standard equipment in Linux, common on Unix.
> 'curl' has also been ported to USS.  (But I think you want the other end.)
> ('wget' may also have been ported to USS.  Dunno.)
>
>         curl -s ftp://user:pass@host/the/file/to/read | tee blah | cat
> | cat | cat
>
> --
> -- R;   <><
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/



--
Maranatha! <><
John McKown

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to