Changes between Version 18 and Version 19 of Plugins/Execute


Ignore:
Timestamp:
11/01/2014 08:15:28 PM (9 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plugins/Execute

    v18 v19  
    4040torrentname=$2 
    4141torrentpath=$3 
    42  
    4342echo "Torrent Details: " $torrentname $torrentpath $torrentid  >> /tmp/execute_script.log 
    4443}}} 
    4544 
    46 The variables should show up in the log file.  
    47 {{{ 
    48 tail /tmp/execute_script.log 
    49 }}} 
     45The variables will show up in the log file: `/tmp/execute_script.log` 
     46 
    5047=== Windows Batch === 
    5148Save this with `.bat` extension such as `execute_example.bat`: 
     
    5653set torrentname=%2 
    5754set torrentpath=%3 
    58  
    5955@echo Torrent Details:  %torrentname% %torrentpath% %torrentid%  >> C:\execute_script.log 
    6056}}} 
    6157 
    62 The variables should show up in the log file.  
     58The variables will show up in the log file: `C:\execute_script.log` 
     59 
     60=== Perl === 
    6361{{{ 
    64 C:\execute_script.log 
     62#!perl 
     63#!/usr/bin/perl 
     64$torrentid = $ARGV[0]; 
     65$torrentname = $ARGV[1]; 
     66$torrentpath = $ARGV[2]; 
     67open(my $fh, '>>', '/tmp/execute_perl.log'); 
     68print $fh "Torrent Details: $torrentname $torrentpath $torrentid\n" 
    6569}}} 
     70 
     71The variables will show up in the log file: `/tmp/execute_perl.log` 
    6672 
    6773=== Python ===