aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuled keeps on overwriting my amule.conf  (Read 2501 times)

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
amuled keeps on overwriting my amule.conf
« 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 ?(.
Logged

pleur

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Re: amuled keeps on overwriting my amule.conf
« Reply #1 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
Logged
Hoe liev ben jij vandaag?

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amuled keeps on overwriting my amule.conf
« Reply #2 on: August 24, 2006, 04:42:36 PM »

You´re tha man!!! :baby:
It worked. Thank you!
Logged

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amuled keeps on overwriting my amule.conf
« Reply #3 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 " % * "

?
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: amuled keeps on overwriting my amule.conf
« Reply #4 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.
Logged
Current aMule CVS builds for OS X can be found here.

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amuled keeps on overwriting my amule.conf
« Reply #5 on: August 25, 2006, 01:20:49 AM »

Yes, this worked, thanks a lot!
Logged

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amuled keeps on overwriting my amule.conf
« Reply #6 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?
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: amuled keeps on overwriting my amule.conf
« Reply #7 on: September 10, 2006, 08:43:33 PM »

Have you tried the script without the "exit" command?
Logged
Current aMule CVS builds for OS X can be found here.

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amuled keeps on overwriting my amule.conf
« Reply #8 on: September 12, 2006, 04:24:40 AM »

I tried the script now without the exit command. Same result. :(
Logged

janga

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amuled keeps on overwriting my amule.conf
« Reply #9 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.
Logged