This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



notifyutil(1)                            BSD General Commands Manual                           notifyutil(1)

NAME
     notifyutil -- notification command line utility

SYNOPSIS
     notifyutil [-q] [-v] [-t] [-p key] [-w key] [-# key] [-g key] [-s key val] ...

DESCRIPTION
     notifyutil is a command-line utility for interacting with the notifyd(8) notification server.  It may
     be used to post notifications, detect and report notifications, and to examine and set the state value
     associated with a notification key.

     The following table summarizes the actions that may be performed.

           -p key      Post a notification for key.
           -w key      Register for key and wait for notifications.
           -# key      Register for key and wait for # (an integer) notifications.  E.g. -1 key waits for a
                       single notification.
           -g key      Get state value for key.
           -s key val  Set state value for key.

     When invoked with any combination of -w and -# actions, notifyutil registers for notification for the
     specified key(s).  If any key is given with a -w action, notifyutil runs until interrupted with Con-trol-C. Control-C.
     trol-C.  If all registrations are invoked with -#, the program continues to run until the corresponding
     number of notifications for each key have been received.

     When a notification for any key that is being monitored is received, notifyutil prints the key on a
     single line on its standard output.  The -v (verbose), -t (time stamp), and -q (quiet) flags, if speci-fied, specified,
     fied, modify the output behavior.  The -v flag causes notifyutil to print both the key and the current
     state value for that key.  The -t flag causes notifyutil to print a time stamp preceeding the notifica-tion notification
     tion key.  The -q flag causes notifyutil to operate silently.

     notifyutil processes its command-line arguments from left to right.  For example, the following will
     register for a single notification for the key ``test.abc'' and then post a notification for that key.

           notifyutil -1 test.abc -p test.abc

SEE ALSO
     notify(3), notifyd(8)

Mac OS X                                      September 5, 2006                                     Mac OS X

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...