Improved version
#!/bin/bash
inotifywait -q -r -m $1 --format %w%f -e create |
while read file; do
if echo "$file" | grep -iq "\.torrent" ; then
canonfile=$(readlink -f "$file")
dir=$(dirname "$canonfile")
if echo `basename "$file"` | grep -iq "^\._"; then
echo
else
counter=0
while : ; do ...
Search found 3 matches
- Sun Mar 02, 2014 3:29 pm
- Forum: General
- Topic: Multiple watch folders script
- Replies: 2
- Views: 4444
- Fri Feb 28, 2014 9:26 pm
- Forum: General
- Topic: Multiple watch folders script
- Replies: 2
- Views: 4444
Multiple watch folders script
Hi,
Already posted this but on the wrong subforum (Mac requests).
I've managed to write a simple script in 5 minutes (a bit dirty but it works) for adding the multiple folder watch functionality to transmission-daemon (on linux).
It's using inotify-tools.
#!/bin/bash
inotifywait -q -r -m $1 ...
Already posted this but on the wrong subforum (Mac requests).
I've managed to write a simple script in 5 minutes (a bit dirty but it works) for adding the multiple folder watch functionality to transmission-daemon (on linux).
It's using inotify-tools.
#!/bin/bash
inotifywait -q -r -m $1 ...
- Fri Feb 28, 2014 6:39 pm
- Forum: Mac Requests
- Topic: Multiple Watch Folders?
- Replies: 10
- Views: 25534
Re: Multiple Watch Folders?
Hi,
I've managed to write a simple script in 5 minutes (a bit dirty but it works) for adding the multiple folder watch functionality to transmission-daemon (on linux).
It's using inotify-tools.
#!/bin/bash
inotifywait -q -r -m $1 --format %w%f -e create |
while read file; do
if echo "$file ...
I've managed to write a simple script in 5 minutes (a bit dirty but it works) for adding the multiple folder watch functionality to transmission-daemon (on linux).
It's using inotify-tools.
#!/bin/bash
inotifywait -q -r -m $1 --format %w%f -e create |
while read file; do
if echo "$file ...