I have designed a small local area network system (not for Internet, just intranet usage) that tracks and sets up a database of available files, then offers them to the LAN. I've also got a Download on Demand system so that if someone wants the server to get a file, it does it. Here is where I'm running into a problem. When the file is downloaded, I need a way to update the MySQLi database with the sub-directory and file name.
Code: Select all
#! /bin/sh
cd /www/movie_watch/
torrent=`cat /www/movie_watch/torrent_link.txt`
transmission-cli -D -v -ep -w /www/movies/ "$torrent"