Chris Hughes > App-OverWatch-0.1 > notify

Download:
App-OverWatch-0.1.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

notify - Interface to App::OverWatch DB locks

SYNOPSIS ^

  notify [OPTIONS] COMMAND

  Commands:

    --check
    --create
    --force_unlock
    --list
    --lock
    --print
    --unlock
    --update

  Options:

    --system
    --worker
    --text
    --expiry
    --help
    --verbose

EXAMPLE ^

Create the Notify table 'notifys':

  # notify --create_table

Create a lock named 'global':

  # notify --create_lock --system global

Check whether 'global' is locked (flagged by exit status):

  # notify --check --system global

Attempt to lock the 'global' lock:

  # notify --lock --system global --worker myworkerid --text 'testing lock'

  # notify --lock --system global --worker myworkerid --text 'testing lock' --expiry 60

Unlock:

  # notify --unlock --system global --worker myworkerid

Force an unlock

  # notify --force_unlock --system global

Print details about a lock:

  # notify --print --system global

List all available locks:

  # notify --list

DESCRIPTION ^

notify is used to create and manipulate locks in a backend database. It provides a simple example interface to the Perl App::OverWatch::Notify module.

SEE ALSO ^

servicelock

eventlog

AUTHOR ^

Chris Hughes

syntax highlighting: