I'm fresh on the Linux boat, just learning everything. Too intimidated to write an entire shell script, so I've made a pretty long command in incron on my new Debian 7 VM. The 'incrond' service is running, I've checked the command outside of incron and it works just fine, and it even "works" according to syslog:
/home/<username>/bt-out/ IN_CLOSE_WRITE sleep 5 ; lftp sftp://<username>:<password>@<server> -e "put -O /home/<username>/watch/ /home/<username>/bt-out/$# && exit" && rm -f /home/<server>/bt-out/$#
And even when I do something simple like simply putting in:
Jun 12 06:07:22 d7 incrond: (root) CMD (sleep 5 ; lftp sftp://<username>:<pass>@<server> -e "put -O /home/<username>/watch/ /home/<username>/bt-out/test308475 && exit" && rm -f /home/<username>/bt-out/test308475)
nothing happens, but syslog looks fine. Again, incrond is running and the commands above work fine when I run them straight out of the terminal. What's going on?
/home/<username>/bt-out/ IN_CLOSE_WRITE leafpad