aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: ExecOnCompletionCommand= question?  (Read 1744 times)

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
ExecOnCompletionCommand= question?
« on: January 24, 2008, 03:41:18 PM »

Hi Ya,

ExecOnCompletionCommand=sh -c '~/example.sh "%FILE" %HASH'

~/example.sh  <-- is this a script i can make?

i.e. i wanna make all .mp3 files go to /music folder and movies to go to /movie  folder upon completed download

so....

ExecOnCompletionCommand=~/example.sh

thanks..
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: ExecOnCompletionCommand= question?
« Reply #1 on: January 25, 2008, 02:58:30 AM »

You could do that by creating categories, but it would not be automatic.

There is no ExecOnCompletionCommand, as far as I know. I have:

[UserEvents]
[UserEvents/DownloadCompleted]
CoreEnabled=1
CoreCommand=doneDL.sh "%NAME" "%FILE" %HASH %SIZE "%DLACTIVETIME"
GUIEnabled=1
GUICommand=kdialog --title "aMule Download Completed" --passivepopup "%NAME" 10

doneDL.sh is a script I wrote which is on the path. You can easily play with bash and filter by extension. If you wish, please post your work here.

Cheers!
Logged