ubinbox

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 <command> is given, then <command> is invoked 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 this is used to monitor a directory, pick up the new files, process them, and then 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

SEE ALSO

Leave a Reply