aMule Forum
English => aMule Help => Topic started by: janga on August 24, 2006, 12:50:50 PM
-
Hi all!
I installed amule-daemon on an ancient compaq pentium2 machine with ubuntu-server 6.06. Amuled itself runs great but i still have some minor problems. As this machine has a built-in speaker, i wanted amule to play a sound on file completion. So i wrote a little script that plays a wave file and added it to amule.conf like this:
ExecOnCompletion=1
ExecOnCompletionCommand=sh ~/success.sh
But everytime i start or restart amuled, it wipes out my settings and replaces it with its standard values (...example.sh or something).
So is my syntax wrong or what?
Same is for the template. When i set
Template=chicane
on the next restart, the setting is gone again ?(.
-
you should only modify the conf-file when the daemon is not running, or use the amuleGUI to change the prefs while running, that should do the trick
-
You´re tha man!!! :baby:
It worked. Thank you!
-
Ok. So the problem with the amule.conf is save now.
But amule still won´t play a sound file. When i execute my script from the shell, everithing is ok, but it still doesn´t work with amule. In the default conf-file there is
ExecOnCompletionCommand = sh - c ' ~ / example . sh " % FILE " % HASH '
What is this % FILE and % HASH argument about? Shall i set something like this:
ExecOnCompletionCommand = sh ~/success. sh " % * "
?
-
Try:
ExecOnCompletionCommand=sh -c '/path/to/home/success.sh'
The %FILE and %HASH parameters are only needed if you want to pass the file name or hash to the script as an argument.
-
Yes, this worked, thanks a lot!
-
Hi guys, another problem here.
My amuled plays the sound file now on sound completion, BUT:
It produces zombies now. when it has executed my success.sh script, it remains as zombie in the prozess list. So when amule completes 10 downloads, top reports 10 success.sh zombies. here is my success.sh:
#!/bin/bash
/usr/bin/play /home/janga/.soundz/success.wav
exit
so what is my mistake?
-
Have you tried the script without the "exit" command?
-
I tried the script now without the exit command. Same result. :(
-
OK, I solved it by downgrading to 2.1.0 from the ubuntu repos. The 2.1.3 from twemu.no-ip.org is kinda messed up. Graphs didnt work with it either.