01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

EPRINTF ( 3T ) ( AT&T UNIX PC only ) EPRINTF ( 3T )<br />

NAME<br />

eprintf - send a message to the status manager<br />

SYNOPSIS<br />

#include <br />

int eprintf (mtype, mact, uname, format [, arg ] ... )<br />

int mtype, mact;<br />

char * uname, *format;<br />

DESCRIPTION<br />

Eprintf formats the passed message a Ia print! and writes the message<br />

to the error device. The status manager wakes up whenever<br />

the error device is written to, queues the message, and displays an<br />

icon to indicate a message is waiting.<br />

Mtype (message type) can have one of the following values:<br />

ST_MAIL Mail messages<br />

ST_CAL Calendar messages<br />

ST_OTHER Miscellaneous messages<br />

ST_SYS Kernel error messages<br />

ST_LOG Log message in log file<br />

ST_POP Popup message<br />

Mact (message action) can have one of the following values:<br />

ST_DISPLA Y Just display message<br />

ST_EXEC Execute process (message text is shell<br />

command line in this case)<br />

ST_NOTIFY Notify caller on display (sends caller<br />

SIGUSR1)<br />

ST_CONFIRM Signal caller with confirmation/denial<br />

on display (SIGUSR1 = Yes, SIGUSR2<br />

=No)<br />

ST_OFF Remove messages from queue<br />

ST_LOGFILE Log message in log file<br />

Uname points to the user login name that the message is for. The<br />

status manager will only display the message pending icon when<br />

this user is logged in. If una me is NULL (or if it points to a null<br />

�tring), then the message is displayed regardless of who is logged<br />

Ill .<br />

ST_POP will cause the message to be acted on immediately,<br />

rather than displaying an icon and waiting for the user to click.<br />

ST_LOG will take the first word of the formatted message (i.e.,<br />

up to the first space) as a file name, which it will open as a logfile<br />

in /usr/adm. The rest of the message will then be inserted in<br />

the file, followed by a time stamp.<br />

DIAGNOSTICS<br />

Eprintf returns -1 if error (open of error device failed).<br />

SEE ALSO<br />

message (3T), tam(3T).<br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!