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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 32. tcsh Built-in Shell Variables (continued)<br />

Variable Purpose<br />

watch A list of user/terminal pairs to watch for logins and<br />

logouts. If either the user is any all terminals are watched<br />

for the given user and vice versa. Setting watch to (any<br />

any) watches all users and terminals. For example,<br />

set watch = (george ttyd 1 any console $user any)<br />

reports activity of the user george on ttyd1, any user on<br />

the console, and oneself (or a trespasser) on any<br />

terminal.<br />

Logins and logouts are checked every 10 minutes by<br />

default, but the first word of watch can be set to a<br />

number to check every so many minutes. For example,<br />

set watch = (1 any any)<br />

reports any login/logout once every minute. For the<br />

impatient, the log built-in command triggers a watch<br />

report at any time. All current logins are reported (as with<br />

the log built-in) when watch is first set.<br />

The who shell variable controls the format of watch<br />

reports.<br />

who The format string for watch messages. The following<br />

sequences are replaced by the given information:<br />

%n The name of the user who logged in/out.<br />

%a The observed action, i.e., ’logged on’. ’logged<br />

off’, or ’replaced olduser on’.<br />

%l The terminal (tty) on which the user logged<br />

in/out.<br />

%M The full hostname of the remote host, or ’local’ if<br />

the login/logout was from the local host.<br />

%m The hostname of the remote host up to the first<br />

’.’ (period). The full name is printed if it is an IP<br />

address or an X Window <strong>System</strong> display.<br />

%M and %m are available only on systems which store<br />

the remote hostname in /etc/utmp. If unset, %n has %a<br />

%l from %m. is used, or %n has %a %l. on systems<br />

which don’t store the remote hostname.<br />

wordchars A list of non-alphanumeric characters to be considered<br />

part of a word by the forward-word, back-ward word, etc.<br />

editor commands. If unset, *?_-.[] ~= is used.<br />

tcsh shell variables not described in the Table 32 on page 656 table are described<br />

below:<br />

prompt<br />

The string which is printed before reading each command from the terminal.<br />

prompt may include any of the following formatting sequences, which are<br />

replaced by the given information:<br />

%/ The current working directory.<br />

%~ The current working directory, but with one’s home directory<br />

tcsh<br />

Chapter 2. Shell command descriptions 665

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

Saved successfully!

Ooh no, something went wrong!