Changes between Version 17 and Version 18 of Plugins/Execute


Ignore:
Timestamp:
10/03/2014 11:44:56 AM (8 years ago)
Author:
Cas
Comment:

add batch file example

Legend:

Unmodified
Added
Removed
Modified
  • Plugins/Execute

    v17 v18  
    3535=== Bash === 
    3636{{{ 
     37#!sh 
    3738#!/bin/bash 
    3839torrentid=$1 
     
    4748tail /tmp/execute_script.log 
    4849}}} 
     50=== Windows Batch === 
     51Save this with `.bat` extension such as `execute_example.bat`: 
     52{{{ 
     53#!bat 
     54@echo off 
     55set torrentid=%1 
     56set torrentname=%2 
     57set torrentpath=%3 
     58 
     59@echo Torrent Details:  %torrentname% %torrentpath% %torrentid%  >> C:\execute_script.log 
     60}}} 
     61 
     62The variables should show up in the log file.  
     63{{{ 
     64C:\execute_script.log 
     65}}} 
    4966 
    5067=== Python === 
    5168{{{ 
     69#!python 
    5270#!/usr/bin/env python 
    5371from sys import argv 
     
    96114You can also achieve the same outcome with a python script: 
    97115{{{ 
     116#!python 
    98117#!/usr/bin/env python 
    99118import sys