NAME
ubinbox
SYNOPSIS
ubinbox {-c <command>} <directory>
DESCRIPTION
ubinbox monitors <directory> for new files.
If a file is created in the directory, ubinbox lists ALL the files in the directory.
If you specify a <command>, then the system invokes that <command> from <directory> once for each file in <directory>. It is the responsibility of <command> to move/remove the files.
If ubinbox is monitoring a directory, it can be forced to execute <command> as if a file has arrived by using SIGRTMIN.
Typically, the system uses this to monitor a directory, pick up new files, process them, and then either delete or move them.
FLAGS
FLAG | ARGUMENT | TYPE | DESCRIPTION |
---|
ERRORS
EXAMPLE
ubinbox /data/incoming | while read f ; do echo $f ; rm -f /tmp/$f ; done
if a running ubinbox has pid 12345: kill -SIGRTMIN 12345