logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

inoticoming - trigger actions when files hit an incoming directory

Actions

       Each  action description is an optional list of options for this action (which files to call it for, what
       directory to change into before executing it, ...), followed by the command and its arguments ended  with
       a single ; as argument. Like:
       inoticoming--foreground/--regexp^vechoThereappeared{}intherootdirectory.\; (Note that the \
       before the ; is needed if and only if you calling it from a shell or anything else interpreting the ;  on
       its own).

   ACTIONOPTIONS--prefixstring
              Only trigger this action, if the filename starts with the specified string.

       --suffixstring
              Only trigger this action, if the filename ends with the specified string.

       --regexpregularexpression
              Only trigger this action, if the filename matches the specified regular expression.

       --chdirdirectory
              Change  into  directory  before  executing the specified commands.  (Note that since it is a well-
              behaved daemon, its working directory is / which will be inherited by all actions).

       --stdout-to-log
              Redirect the command's output (stdout) to the logfile.

       --stderr-to-log
              Redirect the command's error output (stderr) to the logfile.

Description

       Inoticoming  is  a  daemon  to  watch a directory with Linux's inotify framework and trigger actions once
       files with specific names are placed in there.

       For example it can be used to wait for .changes files uploaded into a directory and call reprepro to  put
       them into your repository.

Examples

inoticoming--logfilelogs/ilog--pid-filepid$INCOMINGDIR--suffix.changes--stderr-to-logreprepro-s-b$REPREPROBASEDIR--waitforlock1000processincomingrulename{}\;
              This will call reprepro for every  new  .changes  file.   Note  that  giving  {}  as  argument  to
              processincoming (which inoticoming will replace with the filename) so that only that .changes file
              is processed and reprepro will not complain about a possible other yet incomplete .changes file is
              only available starting with reprepro version 2.2.2.

Global Options

--foreground
              Do not fork, but stay in the foreground and log to stderr.

       --logfilefilename
              After forking in the background, log to the specified filename instead of syslog.

       --pid-filefilename
              Write the pid of the running instance into filename.

       --initialsearch
              First  search the directory for files already existing and process them with the given rules as if
              they just appeared.  If files show up in this inital phase,  they  may  be  processed  twice,  but
              should never be missed.  (Unless they are too many and the inotify queue overflows).

Name

       inoticoming - trigger actions when files hit an incoming directory

Problems

       There is no handling of queue overflows yet.

Reporting Bugs

       Report bugs or wishlist requests to the Debian BTS
       (e.g. by using reportbuginoticoming under Debian)
       or directly to <brlink@debian.org>.

Synopsis

inoticoming [ global-options ] directoryactions*

See Also