aMule Forum

English => aMule Help => Topic started by: janga on August 24, 2006, 12:50:50 PM

Title: amuled keeps on overwriting my amule.conf
Post 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 ?(.
Title: Re: amuled keeps on overwriting my amule.conf
Post by: pleur on August 24, 2006, 02:16:07 PM
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
Title: Re: amuled keeps on overwriting my amule.conf
Post by: janga on August 24, 2006, 04:42:36 PM
You´re tha man!!! :baby:
It worked. Thank you!
Title: Re: amuled keeps on overwriting my amule.conf
Post by: janga on August 24, 2006, 08:58:12 PM
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 " % * "

?
Title: Re: amuled keeps on overwriting my amule.conf
Post by: lionel77 on August 24, 2006, 11:38:14 PM
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.
Title: Re: amuled keeps on overwriting my amule.conf
Post by: janga on August 25, 2006, 01:20:49 AM
Yes, this worked, thanks a lot!
Title: Re: amuled keeps on overwriting my amule.conf
Post by: janga on September 10, 2006, 10:59:22 AM
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?
Title: Re: amuled keeps on overwriting my amule.conf
Post by: lionel77 on September 10, 2006, 08:43:33 PM
Have you tried the script without the "exit" command?
Title: Re: amuled keeps on overwriting my amule.conf
Post by: janga on September 12, 2006, 04:24:40 AM
I tried the script now without the exit command. Same result. :(
Title: Re: amuled keeps on overwriting my amule.conf
Post by: janga on September 12, 2006, 05:51:35 AM
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.