このシェルスクリプトは、フォルダーに入れられたすべてのものを送信に追加する必要があります。1 つのフォルダーでは正常に動作しますが、同時に複数のフォルダーを追加すると、2 番目のフォルダーは無視されます。
while true;
do
file=$(inotifywait -e moved_to --format %f /srv/watchfolderfilme)
file="/srv/watchfolderfilme/$file"
transmission-create -o $file.torrent -s 16384 -t http://0.0.0.0:6969/announce $file
mv $file /srv/downloads
chmod 0777 $file.torrent
cp $file.torrent /srv/newtorrentfiles
mv $file.torrent /srv/watchfoldertorrents
done