• Aucun résultat trouvé

SEE ALSO

Dans le document A / UX® Command Reference (Page 37-200)

csh(1), ksh(l), make(l), sh(1), test(l), true(l).

macref(1) macref(1)

NAME

macref - produce cross-reference listing of macro files SYNOPSIS

macref [-t] [-s] [-n] [--] file . ..

DESCRIPTION

The macref program reads the named files (which are assumed to be nroff(l)/troff(1) input) and produces a cross-reference listing of the symbols in the input.

A - t in the command line causes a macro table of contents to be printed. The -s flag option causes symbol-use statistics to be printed. The -n flag option causes one line to be printed for each reference to a symbol. The options may be grouped behind one -.

You may use -- to delimit the end of options. macref does not accept - as standard input.

The default output is a list of the symbols found in the input, each accompanied by a list of all references to that symbol. macref lists the symbols alphabetically in the leftmost column, with the references following to the right. Each reference is given in the form:

[ [(NMname)] Mname-] type Inurn [#]

where the fields have the following meanings:

Mname the name of the macro within which the reference oc-curs. This field is missing if the reference occurs out-side a macro. Any names listed in the NMname part are macros within which Mname is defined.

type the type associated, by context, with this occurrence of the symbol. The types may be:

r request

m macro

d diversion s string

n number register

p parameter (e.g. \ $x is a parameter reference to x. Note that parameters are never modified, and that the only valid parameter symbol names are 1,2, ... 9).

macref(l) macref(l)

Inurn the line number on which the reference occurred.

# this reference modifies the value of the symbol.

Generated names are listed under the artificial symbol name sym.

FILES

/usr/bin/macref SEE ALSO

nroff(1), troff(1).

mactoiso( 1) mactoiso(1)

NAME

mactoiso, isotomac - convert from Macintosh® encoding to International Standards Organization (ISO) encoding

SYNOPSIS

mactoiso [-c char] [file]

isotomac [-c char] [file]

DESCRIPTION

mactoiso reads from the optional file argument or from stan-dard input, characters encoded according to the Macintosh charac-ter set and writes them to standard output converted to the ISO 8859-1 character-set encoding scheme.

isotomac does the same type of conversion except that it reads characters from the ISO character set as input and writes them to standard output converted to the Macintosh character set. Each character set contain characters that are not represented in the other's character set. The command by default places a blank character in place of the characters that are not represented in the other character set. The -c option allows the user to specify the use of another character besides the default blank character.

DIAGNOSTICS

The exit status is 0 if everything is OK and 1 for a usage error.

SEE ALSO

charcvt(3c), mac(5), iso(5).

mail(l) mail(l)

NAME

mail, rmail-send mail to users or read mail SYNOPSIS

mail [-e] [-fjile] [-p] [-q] [-r] [-t] address ...

rmail [-t] address . ..

DESCRIPTION

mail without arguments prints a user's mail, message-by-message, in last-in, first-out order. For each message-by-message, the user is prompted with a ?, and a line is read from the standard input to determine the disposition of the message:

newline

p Print message again.

Go back to previous message.

s [file ... ] Save message in the named files ad-dresses (yourself is default).

q Put undeleted mail back in the

The optional arguments alter the printing of the mail:

-e

-p -q

causes mail not to be printed. An exit value of 0 is returned if the user has mail; otherwise, an exit value of 1 is returned.

causes all mail to be printed without prompting for disposition.

causes mail to terminate after interrupts. Normally an interrupt only causes the termination of the mes-sage being printed.

mail(l) mail(l)

- r causes messages to be printed in first-in, first-out ord-ere

-ffile causes mail to use file (e.g., mbox) instead of the default mailfile.

When address is named, mail takes the standard input up to an end-of-file (or up to a line consisting of just a .) and adds it to each address's mailfile. The message is preceded by the sender's name and a postmark. Lines that look like postmarks in the mes-sage, (i.e., From ... ) are preceded with a >. The -t flag option causes the message to be preceded by all addresses the mail is sent to. An address is usually a user name recognized by 10-gin(l). If an address being sent mail is not recognized, or if mail is interrupted during input, the file dead. letter will be saved to allow editing and resending. Note that this is regarded as a temporary file in that it is recreated every time needed, erasing the previous contents of dead. letter.

To denote a recipient on a remote system, prefix address by the system name and exclamation mark (see uucp(lC». Everything after the first exclamation mark in address is interpreted by the re-mote system. In particular, if address contains additional excla-mation marks, it can denote a sequence of machines through which the message is to be sent on the way to its ultimate destina-tion. For example, specifying a! b! cde as a recipient's name causes the message to be sent to user b! cde on system a. Sys-tem a will interpret that destination as a request to send the mes-sage to user cde on system b. This might be useful, for instance, if the sending system can access system a but not system b, and system a has access to system b. mail will not use uucp if the remote system is the local system name (i.e., localsystem! user).

The mailfile may be manipulated in two ways to alter the function of mail. The other permissions of the file may be read-write, read-only, or neither read nor write to allow different levels of privacy. If changed to other than the default, the file will be preserved even when empty to perpetuate the desired permissions.

The file may also contain the first line:

Forward to address

which will cause all mail sent to the owner of the mailfile to be forwarded to address. This is especially useful to forward all of a user's mail to one machine in a multiple machine environment. In

mail(l) mail(l)

order for forwarding to work properly, the mailfile should have mail as group ID, and the group permission should be read-write.

rmail permits only the sending of mail; uucp(1C) uses rmail as a security precaution.

When a user logs in, the presence of mail, if any, is indicated.

Also, notification is made if new mail arrives while using mail.

EXAMPLES

mail cj

accepts whatever message is typed up to an EOF. The user c j will be notified that he has mail the next time he logs in.

If you want to read mail that has been sent to you, simply type mail

FILES

/bin/mail /bin/rmail /etc/passwd / u s r / rna i 1 / user

$HOME/rnbox

$MAIL /tmp/ma*

/usr/mail/*.lock

$HOME/dead.letter

to identify sender and locate user addresses

incoming mail for user; i.e., the mailfile

saved mail

variable containing pathname of mailfile

temporary file

lock for mail directory unmailable text SEE ALSO

bi ff(1), login(1), mailx(1), uucp(1C), wri te(1).

BUGS

Conditions sometimes result in a failure to remove a lock file.

After an interrupt, the next message may not be printed; printing may be forced by typing a p.

mailx(1) mailx(l)

NAME

mailx - interactive message processing system SYNOPSIS

mailx [-d] [-e] [-f [filename]] [-F] [-h number] [-H] [-i]

[-n] [-N] [-r address] [-s subject] [-u user] [-u] [name ... ] DESCRIPTION

mailx provides a flexible environment for sending and receiving messages electronically. When reading mail, mailx provides commands to facilitate saving, deleting, and responding to mes-sages. When sending mail, mailx allows editing, reviewing, and other modifications of the message as it is entered.

Incoming mail is stored in a standard file for each user, called the system mailbox for that user, usually named /usr /mail/name.

(y ou may alter this default by using the - f flag option, as shown later.) When mailx is called to read messages, the mailbox is the default place to find them. As messages are read, they are marked to be moved to a secondary file for storage, unless specific action is taken, so that the messages need not be seen again. This secon-dary file is named mbox and is normally located in the user's home directory (see ENVIRONMENT VARIABLES, later, for a description of this file). Messages remain in this file until forcibly removed.

On the command line, flag options start with a dash (-) and any other arguments are taken to be destinations (recipients). If no re-cipients are specified, mailx will attempt to read messages from the mailbox. Flag options are:

-d Turn on debugging output; neither particularly first recipient. Overrides the record variable, if set (see ENVIRONMENT VARIABLES).

The number of network hops made so far. This is provided for network software to avoid infinite delivery loops.

mailx(l) mailx(l)

Do not print initial header summary.

Pass address to network delivery software. All tilde commands are disabled.

Set the Subject header field to subject.

Read user's mailbox. This is only effective if user's mailbox is not read-protected.

Convert uucp style addresses to internet stan-dards. Overrides the conv environment vari-able.

To terminate a mail message, type an end-of-file, or enter a single period at the start of a line.

When reading mail, mailx is in command mode. A header sum-mary of the first several messages is displayed, followed by a prompt indicating mailx can accept regular commands (see COMMANDS later in this section). When sending mail, mailx is in input mode. If no subject is specified on the command line, a prompt for the subject is printed. As the message is typed, mailx will read the message and store it in a temporary file. Commands may be entered by beginning a line with the escape character (tilde (-) by default) followed by a single command letter and op-tional arguments. See TILDE ESCAPES later in this section, for a summary of these commands.

At any time, the behavior of mailx is governed by a set of en-vironment variables. These are flags and valued parameters that are set and cleared via the se[t] and uns[et] commands. See ENVIRONMENT VARIABLES, later, for a summary of these parameters.

Recipients listed on the command line may be of three types: lo-gin names, shell commands, or alias groups. Lolo-gin names may be any network address, including mixed network addressing. If the recipient name begins with a pipe symbol ( I ), the rest of the name is taken to be a shell command to pipe the message through. This provides an automatic interface with any program that reads the

mailx(1) mailx(1)

standard input, such as lp(1) for recording outgoing mail on pa-per. Alias groups are set by the a[lias] command (see COM-MANDS, later) and are lists of recipients of any type.

Regular commands are of the form:

[command] [msglist] [arguments]

If no command is specified in command mode, p[rint] is as-sumed. In input mode, commands are recognized by the escape character, and lines not treated as commands are taken as input for the message.

Each message is assigned a sequential number, and there is at any time the notion of a "current" message, marked by a > in the

An inclusive range of message numbers.

All messages from user.

All messages with string in the subject line (case type of message specification makes sense.

Other arguments are usually arbitrary strings whose usage depends on the command involved. Filenames, where expected, are expanded via the normal shell conventions (see csh(1». Spe-cial characters are recognized by certain commands and are docu-mented with the commands later.

mailx(1) mailx(l)

At startup time, mailx reads commands from a system-wide file (/usr/lib/mailx/mailx. rc) to initialize certain parame-ters, then from a private startup file ($HOME/ . mailrc) for per-sonalized variables. Most regular commands are legal inside start-up files, the most common use being to set start-up initial display op-tions and alias lists. The following commands are not legal in the startup file: !, C[opy], e[dit], fo[llowup], F[ollowup], ho[ld], m[ail], pre[serve], r[eply], R[eply], sh[ell], and v[isual]. Any errors in the startup file cause the remaining lines in the file to be ignored.

COMMANDS

The following is a complete list of mailx commands:

! shell-command Escape to the shell. See SHELL (EN-VIRONMENT VARIABLES).

#" comment

?

Null command (comment). This may be useful in . mailrc files.

Prints the current message number.

Prints a summary of commands.

a[lias] alias name .. . g[roup] alias name .. .

Declares an a[lias] or g[roup] for the given names. The names will be substituted when alias is used as a recipient. Useful in the . mailrc file.

al t[ernates] name . ..

cd [directory]

ch[dir] [directory]

Declares a list of alternate names for your login. When responding to a message, these names are removed from the list of reci-pients for the response. With no arguments, alt[ernates] prints the current list of al-ternate names. (See also allnet under ENVIRONMENT VARIABLES.)

Changes directory. If directory is not

mailx(1)

Copies messages to the file without marking the messages as saved. Otherwise equivalent to the s[ave] command.

Saves the specified messages in a file whose name is derived from the author of the sage to be saved, without marking the mes-sages as saved. Otherwise equivalent to the S[ave] command.

d[elete] [msglist] Deletes messages from the mailbox. If au-toprint is set, the next message after the the specified header fields when displaying messages on the screen. Examples of header fields to ignore are status and cc. The fields are included when the message is saved. The P[rint] and T[ype] com-mands override this command.

Deletes the specified messages from the mailbox and print the next message after the last one deleted. Roughly equivalent to a d[elete] command followed by a p[rint] command.

Echos the given strings (like echo(l)).

Edits the given messages. The messages are placed in a temporary file and the EDITOR variable is used to get the name of the editor (see ENVIRONMENT VARIABLES). De-fault editor is ed(1).

mailx(l) mailx(l) in the specified file (folder). Several special characters are recognized when used as filenames, with the following substitutions:

% the current mailbox.

% user the mailbox for user.

# the previous file.

& the current mbox.

Default file is the current mailbox.

Prints the names of the files in the directory set by the folder variable (see EN-VIRONMENT VARIABLES).

fo[llowup] [message]

Responds to (follow up on) a message, recording the response in a file whose name is derived from the author of the message.

Overrides the record variable, if set. See also the F[ollowup], S[ave], and C[opy]

commands and outfolder (ENVIRON-MENT VARIABLES). com-mands and outfolder (ENVIRONMENT VARIABLES).

mai1x(1)

f[rom] [msglist]

mai1x(1)

Prints the header summary ("from" portion) for the specified messages.

g[roup] alias name .. . a[lias] alias name .. .

Declare an a[lias] or g[roup] for the given names. The names will be substituted when alias is used as a recipient Useful in (see ENVIRONMENT VARIABLES). See also the z command.

Prints a summary (help list) of commands.

ho[ld] [msglist]

Holds (Preserves) the specified messages in the mailbox.

Conditional execution, where s will execute following mail-commands, up to an e1[se]

or en[dif], if the program is in send mode (that is, not receiving or reading mail), and r causes the mail-commands to be executed the specified header fields when displaying messages on the screen. Examples of header fields to ignore are status and cc. All

mailx(l) mailx(l)

fields are included when the message is saved. The P[rint] and T[ype] com-mands override this command.

l[ist] Prints (lists) all commands available. No ex-planation is given.

m[ail] name Mails a message to the specified users.

mb[ ox] [msglist] Arranges for the given messages to end up in the standard mbox save file when mailx terminates normally. See mbox (EN-VIRONMENT V ARIABLES) for a descrip-tion of this file. See also the ex[i t] and q[ ui t] commands.

n[ext] [message] Goes to the next message matching message.

A msglist may be specified, but in this case, the first valid message in the list is the only one used. This is useful for jumping to the next message from a specific user, since the name would be taken as a command in the absence of a real command. See the discus-sion of msglists above for a description of possible message specifications.

pi [pe ] [msglist] [shell-command]

I [msglist] [shell-command]

Pipes the message through the given shell-command. The message is treated as if it were read. If no arguments are given, the current message is piped through the com-mand specified by the value of the cmd vari-able. If the page variable is set, a form feed character is inserted after each message (see ENVIRONMENT VARIABLES).

pre[serve] [msglist]

ho[ld] [msglist] Preserves (Holds) the specified messages in the mailbox.

Iii!

P[rint] [msglist]

mailx(l)

Prints (Types) the specified messages on the screen, including all header fields. Over-rides suppression of fields by the ig[nore]

Exits (Quits) from mailx, storing messages that were read in mbox and unread mes-sages in the mailbox. Messages that have been saved explicitly in a file are deleted.

Responds to the author of each message in the msglist. The subject line is taken from the first message. If record is set to a filename, the response is saved at the end of that file (see ENVIRONMENT V ARI-ABLES).

r[eply] [message]

r[espond] [message]

S[ave] [msglist]

Replies to the specified message, including all other recipients of the message. If

record is set to a filename, the response is saved at the end of that file (see ENVIRON-MENT VARIABLES).

Saves the specified messages in a file whose name is derived from the author of the first message. The name of the file is taken to be the author's name with all network address-ing stripped off. See also the C[opy], fo[llowup], and F[ollowup] commands

mailx(1) mailbox when mailx terminates unless keeps ave is set (see also defined variables and their values. See EN-VIRONMENT V ARIABLES for detailed descriptions of the mailx variables.

Invokes an interactive shell (see also SHELL (ENVIRONMENT VARIABLES».

Prints the size in characters of the specified messages.

so[urce] filename Reads (sources) commands from the given file and return to command mode.

to[p] [msglist] Prints the top few lines of the specified mes-sages. If the toplines variable is set, it is taken as the number of lines to print (see ENVIRONMENT V ARIABLES). The de-fault is 5.

tou[ch] [msglist] Touches the specified messages. If any mes- , sage in msglist is not specifically saved in a file, it will be placed in the mbox upon

nor-mailx(l) screen, including all header fields. Over-rides suppression of fields by the ig[nore]

Restores (un deletes) the specified deleted messages. Will restore only those messages deleted in the current mail session. If au-toprint is set, the last message of those restored is printed (see ENVIRONMENT VARIABLES).

Causes the specified variables to be erased (unset). If the variable was imported from the execution environment (Le., a shell vari-able) then it cannot be erased.

Prints the current version and release date.

Edits the given messages with a (visual) screen editor. The messages are placed in a temporary file and the VISUAL variable is used to get the name of the editor (see EN-VIRONMENT VARIABLES).

w[ri tel [msglist] Writes the given messages on the specified file, minus the header and trailing blank line.

Otherwise equivalent to the s[ave]

com-mailx(l) mailx(l)

Scrolls the header display forward or back-ward one screenful. The number of headers displayed is set by the screen variable (see ENVIRONMENT VARIABLES).

TILDE ESCAPES

The following commands may be entered only from input mode, by beginning a line with the escape character (tilde (-) by de-fault). See escape under ENVIRONMENT VARIABLES for changing this special character.

The following commands may be entered only from input mode, by beginning a line with the escape character (tilde (-) by de-fault). See escape under ENVIRONMENT VARIABLES for changing this special character.

Dans le document A / UX® Command Reference (Page 37-200)

Documents relatifs