aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: howto execute a script when a download is completed?  (Read 2010 times)

Arichy

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 224
howto execute a script when a download is completed?
« on: April 24, 2007, 08:43:28 PM »

aMule SVN-2007-03-13

Hi,

what means "command execution on core" in the events tab in preferences?

I want to execute a shell script when a download is completed and enabled "command execution on core" and named there the script, but the script is not being executed on completed download.

What does "on core" and "on gui" mean?
I have amule monolithic running.
Logged
Gentoo i686

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: howto execute a script when a download is completed?
« Reply #1 on: April 25, 2007, 06:09:30 AM »

On core means that any amule application having "core" will execute. Amule apps having core: amule, amuled;
On gui means that any amule application having "gui" will execute. Amule apps having gui: amule, amulegui.
I have on core:
doneDL.sh "%NAME" "%FILE" %HASH %SIZE "%DLACTIVETIME"

And on gui:
kdialog --title "aMule Download Completed" --passivepopup "%NAME" 10

doneDL.sh is on my path. It's source is also here in the wiki:
http://www.amule.org/wiki/index.php/Events
Logged