Author Topic: Execute Comand doesn't work in 0.28.4  (Read 6558 times)

Offline davidq666

  • Global Moderator
  • *****
  • Posts: 1303
  • Watashi Wa Ero Desu!
Execute Comand doesn't work in 0.28.4
« on: February 26, 2009, 12:32:11 PM »
Since i started playing around with batch-files i noticed, that the execute comand doesn't seem to work in alt.binz v. 0.28.4. I double checked by installing a fresh copy which show the same behavoir as the previously installed copy:  after the completed download the execute comand just didn't start the batch file. i tried the same thing with version 0.28.3 where it worked just fine.

Offline cr4zyfr4g

  • Global Moderator
  • *****
  • Posts: 779
  • German n00b
Re: Execute Comand doesn't work in 0.28.4
« Reply #1 on: February 27, 2009, 02:05:53 PM »
I can confirm that

Offline Rdl

  • Administrator
  • *****
  • Posts: 3506
Re: Execute Comand doesn't work in 0.28.4
« Reply #2 on: March 09, 2009, 09:27:23 PM »
Hm, works here. However I intoduced some changes now:

It will be executed even if there is nothing to unrar.
$d - download dir
$u - unrar dir
$col - collection name

Format:

"path_to_exe_bat" $d $u $col
"path_to_exe_bat" "$d"
"path_to_exe_bat" $col
"path_to_exe_bat" -unrar "$u"


Offline inhere

  • Contributor
  • ***
  • Posts: 7
Re: Execute Comand doesn't work in 0.28.4
« Reply #3 on: March 26, 2009, 10:03:53 PM »
"path_to_exe_bat" $d $u $col
"path_to_exe_bat" "$d"
"path_to_exe_bat" $col
"path_to_exe_bat" -unrar "$u"

does this mean the only valid options are those above?  so "path_to_exe_bat" "$d" "$col" would not be valid?

Offline cr4zyfr4g

  • Global Moderator
  • *****
  • Posts: 779
  • German n00b
Re: Execute Comand doesn't work in 0.28.4
« Reply #4 on: March 26, 2009, 10:08:40 PM »
those are just examples

you can use the $ identifiers mixed like you want

Offline Rdl

  • Administrator
  • *****
  • Posts: 3506
Re: Execute Comand doesn't work in 0.28.4
« Reply #5 on: March 26, 2009, 10:11:02 PM »
"path_to_exe_bat" $d $u $col
"path_to_exe_bat" "$d"
"path_to_exe_bat" $col
"path_to_exe_bat" -unrar "$u"

does this mean the only valid options are those above?  so "path_to_exe_bat" "$d" "$col" would not be valid?
It's valid

Offline inhere

  • Contributor
  • ***
  • Posts: 7
Re: Execute Comand doesn't work in 0.28.4
« Reply #6 on: March 26, 2009, 10:12:26 PM »
the command isn't kicking off for me at all then...

Offline Rdl

  • Administrator
  • *****
  • Posts: 3506
Re: Execute Comand doesn't work in 0.28.4
« Reply #7 on: March 26, 2009, 10:16:09 PM »
the command isn't kicking off for me at all then...
The command will be executed on complete par2 set if unrar was not set or after unraring of the all rar sets (set) inside par2 collection

Offline inhere

  • Contributor
  • ***
  • Posts: 7
Re: Execute Comand doesn't work in 0.28.4
« Reply #8 on: March 26, 2009, 10:24:29 PM »
does it not execute if if the nzb has been imported before?  I was testing by downloading and wanted to downlod something small, but TV so I opened an nzb from the rss feed several times, and seemd to not work after updating to 0.28.5, but restarted and opened a different nzb and seems ok now.  Thanks.

what goes into $col?  The nzb name?  It seems to get fired multiple times when I opened a nzb with rar (and par) sets in it, will $col contain something different for each rar (par) set?  Or will it contain the nzb name only?

Offline Rdl

  • Administrator
  • *****
  • Posts: 3506
Re: Execute Comand doesn't work in 0.28.4
« Reply #9 on: March 26, 2009, 10:53:30 PM »
does it not execute if if the nzb has been imported before?  I was testing by downloading and wanted to downlod something small, but TV so I opened an nzb from the rss feed several times, and seemd to not work after updating to 0.28.5, but restarted and opened a different nzb and seems ok now.  Thanks.

what goes into $col?  The nzb name?  It seems to get fired multiple times when I opened a nzb with rar (and par) sets in it, will $col contain something different for each rar (par) set?  Or will it contain the nzb name only?
Collection name. It's ussualy NZB name if not renamed. Collection can have multiple par2 sets. One collection can have only one execute command which will be executed on every finished par2 set.