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.

tcsh<br />

This will put the hostname and working directory on the title bar but only the<br />

hostname in the icon manager menu. Putting a cd, pushd or popd in<br />

cwdcmd may cause an infinite loop.<br />

periodic<br />

Runs every tperiod minutes. This provides a convenient means for<br />

checking on common but infrequent changes such as new mail. For<br />

example, if one does<br />

> set tperiod = 30<br />

> alias periodic checknews<br />

then the checknews program runs every 30 minutes. If periodic is set but<br />

tperiod is unset or set to 0, periodic behaves like precmd.<br />

precmd<br />

Runs just before each prompt is printed. For example, if one does<br />

> alias precmd date<br />

tcsh programming constructs<br />

then date runs just before the shell prompts for each command. There are<br />

no limits on what precmd can be set to do, but discretion should be used.<br />

shell Specifies the interpreter for executable scripts which do not themselves<br />

specify an interpreter. The first word should be a full pathname to the<br />

desired interpreter. For example: /bin/tcsh or /usr/local/bin/tcsh (by<br />

default, this is set to /bin/tcsh).<br />

1. breaksw<br />

Causes a break from a switch, resuming after the endsw.<br />

2. case label<br />

A label in a switch. See the switch built-in description.<br />

3. continue<br />

Continues execution of the nearest enclosing while or foreach. The rest of the<br />

commands on the current line are executed.<br />

4. default<br />

Labels the default case in a switch statement. It should come after all case<br />

labels.<br />

5. else<br />

end<br />

endif<br />

endsw<br />

See the description of the foreach, if, switch, and while statements that<br />

follow.<br />

6. goto word<br />

With goto, word is filename and command substituted to yield a string of the<br />

form label. The tcsh shell rewinds its input as much as possible, searches for a<br />

line of the form label, possible preceded by blanks or tabs, and continues<br />

exectution after that line.<br />

7. foreach<br />

...<br />

end<br />

654 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference<br />

Successively sets the variable name to each member of wordlist and executes<br />

the sequence of commands between this command and the matching end.

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

Saved successfully!

Ooh no, something went wrong!