If both directories can be reached from an lpar, then why not use the cp 
command with a suitable wild card in the source path.  Or you could tar the 
source directory and pipe the output to an "untar" command that specifies the 
desired destination.

>-----Original Message-----
>From: IBM Mainframe Discussion List [mailto:[email protected]] On
>Behalf Of Ron Wells
>Sent: Tuesday, October 15, 2013 10:42 AM
>To: [email protected]
>Subject: Re: Copy from one Dir to another
>
>now I'm lost....
>over my head... lol
>
>there a batch run or maybe another example ..
>cd understand
>what is the ssh ?
>and yes the file system can be reached from  either lpar...
>
>
>
>From:   Paul Gilmartin <[email protected]>
>To:     [email protected]
>Date:   10/15/2013 12:31 PM
>Subject:        Re: Copy from one Dir to another
>Sent by:        IBM Mainframe Discussion List <[email protected]>
>
>
>
>On Tue, 15 Oct 2013 11:11:36 -0500, Ron Wells wrote:
>
>>Have Directory's on one lpar wanting to copy over to another....
>>
>>zfs files are different name on each system...
>>
>>best method ... and example would be appreciated
>>
>(Without testing) I'd do something like:
>
># On the destination lpar:
>    cd somewhere
>    ssh source_lpar "cd somewhere &&amp; tar -cf - dir1 dir2 ..." | tar
>-xvf -
>
>-- gil
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions, send
>email to [email protected] with the message: INFO IBM-MAIN
>
>----------------------------------------------------------------------
>Email Disclaimer
>This  E-mail  contains  confidential  information  belonging to the
>sender, which  may be legally privileged information.  This information
>is intended only  for  the use of the individual or entity addressed
>above.  If you are not  the  intended  recipient, or  an  employee  or
>agent responsible for delivering it to the intended recipient, you are
>hereby notified that any disclosure,  copying, distribution, or the
>taking of any action in reliance on the contents of the E-mail or
>attached files is strictly prohibited.
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions, send
>email to [email protected] with the message: INFO IBM-MAIN

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

Reply via email to