16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

level 9 provides verbose messages. Values greater than 9 give no<br />

additional information. The default level is 0.<br />

Options are not passed on to remote sites when the destination of your uucp<br />

command is a multihop name. For this uucp command:<br />

uucp –mf file1 site1!site2!/file1<br />

the –m and –f options are ignored. For multihop, uucp creates a uux request to<br />

run a uucp command at the next site (site1 in our example). But because site1 can<br />

be any system that supports uucp, it is possible that this particular system may not<br />

support the same options that are supported by uucp. For that reason, options are<br />

not passed to the uucp command to be run at site1.<br />

To summarize the restrictions when using multihop destination names:<br />

v Options are not passed.<br />

v Shell metacharacters cannot be used in source file names.<br />

1. To copy the file /notes/memo from your site to a file named minutes in the<br />

public UUCP directory on a site named south:<br />

uucp /notes/memo south! ~/minutes<br />

2. You can also copy files locally. To copy the file resume.txt on your site to the<br />

file /business/resumes/november on your site:<br />

uucp resume.txt /business/resumes/november<br />

You must have read permission on the current directory. If the directories<br />

business/resumes don’t already exist, they are created, if you have write<br />

permission in /.<br />

3. To copy the file index from the public UUCP directory on north to the current<br />

directory on the local site:<br />

uucp north! ~/index<br />

You must have write permission on the current directory.<br />

4. To copy the file index from the public UUCP directory on south to the<br />

subdirectory south/records in the public UUCP directory on the current site:<br />

uucp -f -m south! ~/index ' ~/south/records/'<br />

You need to protect the tilde so the shell does not expand them to the user’s<br />

home directory. If the subdirectory south/records does not already exist, the file<br />

copy fails. Mail is sent to you when the transfer is completed successfully.<br />

5. You want to copy a file from your system to the site named east. Your system<br />

does not have a connection to east, but you do have a connection to north,<br />

and north has a connection to east:<br />

uucp memo north!east! ~/memo<br />

6. You want to use shell metacharacters to specify the files to be transferred to a<br />

remote site.<br />

In this command, the source pathname is expanded by the shell. The uucp<br />

command succeeds as long as there is at least one file that matches the name<br />

specification:<br />

uucp /mystuff/file?.[ab&]* remote!/tmp/<br />

uucp<br />

In this command, the source pathname is not expanded by the shell, because it<br />

cannot find any matching file. The '!' is not allowed, because uucp interpretes<br />

all '!' characters as delimiting system names.<br />

Chapter 2. Shell command descriptions 739

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!