NAME utwall - notification utility for Sun Ray users SYNOPSIS /opt/SUNWut/sbin/utwall -a aufile [ -r n ] [ -v ] { ALL | user [ :DN ] ... } /opt/SUNWut/sbin/utwall [ -d ] [ -m `subject` ] [ -t `msg-text` ] [ -v ] { ALL | user [ :DN ] ... } DESCRIPTION utwall sends a message or an audio file to users having an Xsun (Xserver unique to Sun Ray) process. The messages can be sent in email and/or displayed in a pop-up window. For options -a and -d, you must have superuser privileges. Option -m is available to all users. OPTIONS The following options are supported: -a aufile Annunciate mode. Plays the audio file aufile on the specified user's X session. Audio files of type ".au" can be found at /usr/demo/SOUND/sounds. -d Pop up a dterror.ds window with supplied message on each Xsun (Xserver). -m `subject' Send mail with the given Subject 'subject' and sup- plied message. If text has white space (spaces, tabs, newlines, etc.), use single or double quotes. Substi- tution is supported. -r n Repeat the annunciation n times. This option can only be used with -a. Default is 1. -t 'msg-text' Message text. Alternatively the message can be sup- plied as stdin. If text has white space (spaces, tabs, newlines, etc.), use single or double quotes. Substi- tution is supported. -v Verbose mode Note: If the -u option is used with no message, it clears any message that is in the /etc/motd file. OPERANDS The following operands are supported: ALL Action is performed on all users having an Xsun (Xserver) process. user[:DN] Action is performed on the given users (optional display number DN) having an Xsun process. EXAMPLES Example 1: Send mail to all users: # utwall -m `System policy Change...' -t `Tonight\nPlease log off' ALL This example of the command sends mail to all that reads: Subject: System policy change... Tonight Please log off Using \n within the message text gets a new line. Example 2: Pop up a window on all sessions saying "Log off now!" # utwall -d -t "Log off now!" ALL Example 3: Pop up a window on jsmith's session on display number 26 with the text from msgfile: # utwall -d jsmith:26 < msgfile Example 4: Rooster will crow three times on all of jsmith's sessions: # utwall -a /usr/demo/SOUND/sounds/rooster.au -r 3 jsmith Example 5: Pop up a window with current date in all of jsmith's and ajones' sessions: # utwall -d - t "Meeting 3pm today, $DATE" jsmith ajones FILES None. ATTRIBUTES See attributes(5) for a description of the following attri- bute: ____________________________________________________________ | Attribute Types | Attribute Values | | Availability | SUNWuto | |_____________________________|_____________________________| SEE ALSO wall(1M), mailx(1M), utaudio(1)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |