The AROS Archives(anonymous IP:,343) 


   o Audio (94)
   o Datatype (15)
   o Demo (46)
   o Development (243)
   o Document (61)
   o Driver (19)
   o Emulation (60)
   o Game (521)
   o Graphics (220)
   o Library (22)
   o Network (60)
   o Office (21)
   o Utility (245)
   o Video (18)

Total files: 1645

Full index file
Recent index file

Part of aros exec
 Readme for:  Utility » Shell »


Description: Waits for a file or directory modification
Download:       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 13kb
Version: 1.1
Date: 07 Nov 07
Author: Tobias Ferber
Submitter: Olivier Tigréat
Category: utility/shell
License: GPL
Distribute: yes
FileID: 259
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 136  (Current version)
136  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

[Show comments] [Show snapshots] [Show videos] [Show content] [Replace file] 
WaitNotify compiled for AROS (i386) without any modification to the original
source. Notification works currently (06/nov/2007) (and WaitNotify can be used)
perfectly well with SFS drives, and almost perfectly with Ram Disk (the only
problem here is that the file must exist before the call to the StartNotify()
function), it should be working with FAT drives too (untested) but it doesn't
work with AFS drives.

Thanks to Tobias Ferber for having GPL'ed this useful tool, and
thanks to Robert Norris for all his works on AROS (notification is one thing
between others), and of course thanks to the AROS Team!

WaitNotify                                                         WaitNotify

        WaitNotify -- Wait for a file or directory modification

        WaitNotify NAME/A/M,QUIET/S,FMT=FORMAT/K

        WaitNotify posts a notification request on the given files
        or directories.  The command will not return until at least
        one of them has been modified.  For files, it will return
        after the file is closed.

        The optional format string will be printed when the file or
        directory changes.  The first "%s" in it will be replaced by
        the name.

        NAME          - name of the files or directories which you want
                        to observe
        QUIET         - suppresses warnings and error messages (but sets
                        the return value to allow later diagnostis
        FORMAT        - string to print on exit.

        ;Wait for a change in our startup-sequence
        WaitNotify S:Startup-Sequence

        ;Wait for a change in either startup script and report its name
        WaitNotify S:Startup-Sequence S:User-Startup FMT="%s*N"

        ;Show the first file which changes via More
        More `WaitNotify S:Startup-Sequence S:User-Startup FMT=%s`

        Not all filesystems will support file notification. In particular,
        most network filesystems won't support it.

        This file is part of the WaitNotify distribution.

        WaitNotify is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published
        by the Free Software Foundation; either version 1 of the License,
        or (at your option) any later version.

        WaitNotify is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        See the GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with the program; see the file COPYING.  If not, write to
        the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

        WaitNotify is Copyright (C)1994 by Tobias Ferber.
        You can reach me via E-mail: ukjg at

Copyright © 2005 - 2024 The AROS Archives All Rights Reserved