On Wed, 4 Mar 2009 20:50:52 +0000, st...@steve.org.uk said: > 2. Cron runs. Again - goto 1a.
Unlikely: he's only running it once per 24 hours. Adam: when you say you get a "lot more btdownloadcurses running", what files are they downloading? The same ones multiple times? Completely the wrong ones? Like Hugo, I suspect this is running in the wrong directory. Putting a "cd /path/to/dir" at the start of the file will help. Putting in debug-type info will help more. Not tested, but something like: -------------------------------------------------------------------------------- #!/bin/sh LOG="/usr/bin/logger -t mycronscript" cd /to/my/directory LOG "Starting" for i in *.torrent do LOG "Processing $i" /usr/bin/btdownloadcurses $i > /dev/null & done LOG "Finished" -------------------------------------------------------------------------------- You can, of course, add more LOG statements as required. The LOG statements will all appear in syslog (or messages or wherever you have configured those things to go). Keith -- Keith Edmunds +-------------------------------------------------------------------------+ | Tiger Computing Ltd | Helping businesses make the most of Linux | | "The Linux Specialists" | http://www.tiger-computing.co.uk | +-------------------------------------------------------------------------+ -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --------------------------------------------------------------