Very good point! I don't have anything mounted under /etc and so totally forgot 
to mention those options. I really prefer "pax", but it is "complicated" in all 
that it can do and all the parms it can take.

John McKown 

Systems Engineer IV

IT

 

Administrative Services Group

 

HealthMarkets(r)

 

9151 Boulevard 26 * N. Richland Hills * TX 76010

(817) 255-3225 phone * (817)-691-6183 cell

[email protected] * www.HealthMarkets.com

 

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Veilleux, Jon L
> Sent: Thursday, November 11, 2010 6:46 AM
> To: [email protected]
> Subject: Re: Need to copy files from etc to etc
> 
> One comment on the 'pax' command. If you use '-XCM' the pax 
> will be limited to copying the files in a single zfs (just in 
> case you have other zfses mounted on sub-directories in the 
> /etc/ directory). You would most likely not want to copy 
> those files since they reside in a separate physical zfs.
> 
> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of John McKown
> Sent: Wednesday, November 10, 2010 8:44 PM
> To: [email protected]
> Subject: Re: Need to copy files from etc to etc
> 
> On Wed, 2010-11-10 at 16:07 -0800, John Norgauer wrote:
> > Hi John,
> > 
> > Thanks for the response. I guess I should have given you more info.
> > 
> > I have mounted on my z/OS 1.11 system, my z/OS 1.9 etc file system. 
> > With this in mind, how would I do this copy function?
> > 
> > Thanks. 
> >
> > John Norgauer
> 
> Most likely, I'd just use "cp" to copy the files that I 
> needed to copy.
> If I wanted to copy __all__ of them, I'd use "pax". In either 
> case, I'd be in a UNIX shell from TSO OMVS or ssh or telnet. 
> Most likely TSO OMVS.
> 
> In the following, assume that you are on the 1.11 system. The 
> /etc from the 1.9 system is mounted on is in the "root" and 
> the 1.9 "root" is mounted on /oldroot. So the 1.9 system's 
> /etc would map to /oldroot/etc . I also assume you can "su" to root.
> 
> su - #change to root user
> cd /oldroot/etc
> pax -rw -v -pe ssh /etc
> exit #from root
> exit #from UNIX shell
> 
> Now, if you want, you could also use "plain" TSO/ISPF and 
> ISHELL. On the first screen of ISHELL, on the upper right is 
> "Setup". Place the cursor within the word and press enter. 
> You'll get an ISPF dialog box with a bunch of options. Option 
> 7 is "Enable superuser mode(SU)". Type in 7 and press enter. 
> Your TSO session is now running as a super user. On the 
> bottom left, you should now see "EUID=0". On the left in the 
> middle, you can put in a UNIX path. Put in the path to the 
> 1.9 ssh subdirectory:
> 
> /oldroot/etc/ssh
> 
> You now have a list of files that look a bit like what you 
> see in option 3.4. For each file that you want to copy, one 
> at a time, put a "c" in front of it and press ENTER. You'll 
> get an ISPF dialog box. Use "1" for a "File..." copy and 
> press ENTER. This brings up another ISPF dialog box where the 
> destination is the same as the source. Remove the leading 
> "/oldroot" so that you'd see something like:
> 
> /etc/ssh/the.name.of.the.file.to.copy
> 
> Press ENTER. Rinse, repeat as necessary.
> 
> When you're finished, go back to the ISHELL main screen. Put 
> the cursor on Setup again. Press ENTER. Select option 7 again 
> to return to your normal UID in TSO.
> 
> 
> 
> 
> --
> John McKown
> Maranatha! <><
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access 
> instructions, send email to [email protected] with the 
> message: GET IBM-MAIN INFO Search the archives at 
> http://bama.ua.edu/archives/ibm-main.html
> This e-mail may contain confidential or privileged information. If
> you think you have received this e-mail in error, please advise the
> sender by reply e-mail and then delete this e-mail immediately.
> Thank you. Aetna   
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
> 
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to