I am watching a directory for new files in Bash.
When a file is created, the file name will be output to the pipe (-> /tmp/directory/filename.ext) and exit.
$ inotifywait /tmp/directory/
How can I submit this to eggdrop so it will output the filename in a channel? Anybody have an idea?
listen <port> script <proc> [flag]
Description: accepts connections which are immediately routed to a proc. The proc is called with one parameter: the idx of the new connection. Flag may currently only be 'pub', which makes the bot allow anyone to connect and not perform an ident lookup. Returns: port number