Hi,
i'm new, french (i don't speak english very well...) and sorry if the answer is somewhere but i did'nt find it.
I have aMule 2.1.3 installed on my Mac (G5 with OSX 10.4.8). aMule starts very well if i double-clic on it in the Finder but sometimes it crashes (after a few hours or days...) without any known reason. I have looked up in the amule log without success.
So, i have written a very little script in tcsh for controling if amule is working (with crontab) and, if not, starts amule with a very simple command. Here's the script :
#!/bin/tcsh -f
set aMule_state = "`ps -awwx | grep "aMule.app/Contents/MacOS/amule" | grep -v grep`"
if ("$aMule_state" == "") then
/Users/rozenn/Desktop/aMule-2.1.3-Mac_UniversalBinary_TigerOnly/aMule.app/Contents/MacOS/amule&
endif
When crontab executes the script, aMule tries to start but the Finder shows a message which says "Close, restart, send a report" because aMule starting has failed . But if i type just the command directly in a terminal to start amule, it works fine !!
So, i have 2 questions :
- why is the same command working directly in a terminal to launch amule and not in a shell script (working with crontab) ?
- what is the good command (and what are the options supported by amule (-h is very short...)) to start it in a shell script ?
Opionnaly, if you know why aMule quits when running, it's interesting also (but i don't give you enough details i suppose).
Thanks in advance.
PS : any advice or suggestion is welcome.