Changes between Version 17 and Version 18 of Plugins/Execute
- Timestamp:
- 10/03/2014 11:44:56 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Plugins/Execute
v17 v18 35 35 === Bash === 36 36 {{{ 37 #!sh 37 38 #!/bin/bash 38 39 torrentid=$1 … … 47 48 tail /tmp/execute_script.log 48 49 }}} 50 === Windows Batch === 51 Save this with `.bat` extension such as `execute_example.bat`: 52 {{{ 53 #!bat 54 @echo off 55 set torrentid=%1 56 set torrentname=%2 57 set torrentpath=%3 58 59 @echo Torrent Details: %torrentname% %torrentpath% %torrentid% >> C:\execute_script.log 60 }}} 61 62 The variables should show up in the log file. 63 {{{ 64 C:\execute_script.log 65 }}} 49 66 50 67 === Python === 51 68 {{{ 69 #!python 52 70 #!/usr/bin/env python 53 71 from sys import argv … … 96 114 You can also achieve the same outcome with a python script: 97 115 {{{ 116 #!python 98 117 #!/usr/bin/env python 99 118 import sys