-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransmission.sh
More file actions
27 lines (22 loc) · 1.3 KB
/
transmission.sh
File metadata and controls
27 lines (22 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#################################################################################
# These are inherited from Transmission. #
# Do not declare these. Just use as needed. #
# #
# TR_APP_VERSION #
# TR_TIME_LOCALTIME #
# TR_TORRENT_DIR #
# TR_TORRENT_HASH #
# TR_TORRENT_ID #
# TR_TORRENT_NAME #
# #
#################################################################################
#./html/transmission/complete.sh
#TR_TORRENT_DIR=/home/brad/Downloads/torrents
#TR_TORRENT_NAME="movie.mp4"
#TR_TORRENT_ID=10
echo $TR_TORRENT_DIR;
echo $TR_TORRENT_NAME;
echo $TR_TORRENT_ID;
transmission-remote -t $TR_TORRENT_ID --remove
mv "${TR_TORRENT_DIR}/${TR_TORRENT_NAME}" "$(dirname $TR_TORRENT_DIR)/done/${TR_TORRENT_NAME}"