NAME utaction - Sun Ray enterprise connect/disconnect action SYNOPSIS /opt/SUNWut/lib/utaction [ -c ccmd ] [ -d dcmd ] [ -D display ] [ -i ] [ -t sec ] DESCRIPTION The utaction program provides a way to execute commands when a Sun Ray enterprise appliance session is connected or disconnected. The ccmd is invoked using sh(1) whenever the session is connected to an appliance. Similarly, the dcmd is invoked using sh(1) whenever the session is disconnected from an appliance. Normally, action is not taken on the ini- tial state of the session (when utaction is first run) unless the -i option is used. OPTIONS The following options are supported: -c ccmd Run this command when the current session is con- nected to an appliance. -d dcmd Run this command when the current session is disconnected to an appliance. -D display This option will set the X display variable that is to be used in determining the Sun Ray enter- prise appliance session. Otherwise the DISPLAY environment variable is used. -i Run the connect or disconnect command immedi- ately, whichever is appropriate. -t sec This option specifies a time-delay in seconds for the actions. In that case, the ccmd or dcmd will not be invoked unless the session remains in the connected or disconnected state, respectively, for at least sec seconds. EXAMPLES Example 1: To invoke the CDE screen lock whenever the ses- sion is disconnected, use: utaction -d '/usr/dt/bin/dtaction LockDisplay' & ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | | Availability | SUNWuto | |_____________________________|_____________________________| NOTES The ccmd and dcmd are each only one argument to utaction. Quotes should be used if a command contains multiple words.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |