home *** CD-ROM | disk | FTP | other *** search
-
- Notify
-
- © 1991 Stefan Sticht
-
- Freely distributable
-
-
- This small program's purpose is to make AmigaOS 2.0's notification
- mechanism available to script files. For example you have a network
- environment which only allows to copy files from one Amiga to another.
- With Notify you can write a script, which waits for a special file at
- a special location. If this file arrives at the special place, it
- gets executed as a script file. So you're able to execute commands on
- another amiga just by copying a file. Notify in a network environment
- is just an example. You may imagine different purposes for Notify.
-
-
- What is notification?
- ---------------------
- AmigaOS 2.0 has a new mechanism called notification. With this
- mechanism a program can get informed, when a file or the contents of a
- directory changes. A program on the Amiga can ask the OS: please
- send me a message, when the file foo:foobar gets changed. Then the OS
- sends a message when foo:foobar gets created, modified or deleted.
- Notification is't possible on every file system. If notification
- on the specified file isn't possible, Notify returns this error
- message: "Error: packet request type unknown". The return code is
- set to 10. Notification is possible with old filesystem,
- fastfilesystem and with the filesystem of the ram disk. Other
- filesystem have to be tested first, if they support notification.
-
-
- Usage:
- ------
- File/A,Times/K/N,Quiet/S
-
- File <name> - a file or directory to get notified about
- Times <number> - after how many notifies should Notify return
- Quiet - don't output anything
-
-
- Examples:
- ---------
- "Notify t:test"
- Notify waits until the file t:test gets created, modified, deleted.
-
- "Notify t:test times 5"
- Notify waits until the file t:test has been changed five times.
-
- "Notify t:test times 5 quiet"
- Same as above, but no messages are printed.
-
- "Notify ENV: quiet"
- Notify waits until a file in the directory env: gets created or
- changed.
-
-
- Return codes:
- -------------
- 20 - Notify couldn't be started
- Problems: Kickstart 2.0 (V37.xxx) not available
- error in command line arguments
- out of memory
-
- 10 - Notification isn't possible. See error message.
- You may also examine DOS's errorcode in Result2.
-
- 5 - Break detected: Notify got a Ctrl-C signal.
-
-
-
- Have fun with it!
-
- Stefan Sticht email:
- Biberecker Weg 40a cbmvax.commodore.com!cbmehq!cbmger!edith!sticht
- D-8390 Passau 18 or IWSTICHT@ibm.rz.uni-passau.de
- FRG Fido: Stefan Sticht (2:242/77:4)
-