View Single Post
  #6  
Old 08.04.2011, 05:35
$foo
Guest
 
Posts: n/a
Default linux watchfolder via remote control add-on

hi,

I just wrote a little bash script for linux,
which uses curl and jd's remote control add-on to
add containers to jd with optional mail reports.

(nightly / JDRemoteControl 12612 req.)

adjust the settings and
add this script to crontab ($crontab -e) to check watchfolder every 5 minutes
*/5 * * * * /etc/jd-watchfolder-cronjob.sh

download:
Code:
**External links are only visible to Support Staff**
-mike

p.s.
after some more tests - it's suggested to uncomment in jd-watchfolder-cronjob.sh
Code:
#sleep 1
to
Code:
sleep 1
line 92

and change the crontab to check every minute (crontab -e as root)
*/1 * * * * /etc/jd-watchfolder-cronjob.sh

Last edited by $foo; 13.04.2011 at 10:46. Reason: fix info
Reply With Quote