On Thu, 1 Sep 2022 12:11:07 -0700, Tom Brennan wrote:
>
>    ...  But I tended to avoid using a 3270
>OMVS connection on USS ...
> 
So flattery gets me nowhere?

>I didn't know you could do that with streams across ssh - pretty
>interesting!
>
>On 9/1/2022 9:06 AM, Paul Gilmartin wrote:
>>>
>> How about:
>>      /bin/cp [options] "//'MVS.DATA.SET(MEMBER)'" | ssh -f Tom@Linux "cat 
>> >Linux.file"
>>
And I was wrong.  Perhaps:
    /bin/cp [options] "//'MVS.DATA.SET(MEMBER)'" /dev/fd/1 |  # target for cp
    iconv -f ISO8859-1 -t IBM-1047 |  # (optional) Undo EBCDIC->ASCII 
conversion.
    ssh    Tom@Linux "cat >Linux.file"  # "-f" is extraneous and harmful!

useful for copying directories and contents:
    pax -w directory | ssh target "pax -r"  # or:
    ssh source "pax -w" | pax -r

>> Or try  to get Purchasing to approve Co:Z.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to