to interact with my iPhone, I created a python script that sends and returns data via a socket, the script must be run after emule to work, I thought of something like this:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/bin/amuled
WEB=/usr/local/bin/amuleweb
NAME=amuled
DESC=amuled
RUNAMULE=no
USER=piros
SOCKET= /home/piros/amule_scripts/aMuleSocket/aMuleSocket.py
And then
case "$1" in
start)
echo -n "Starting $DESC: "
su $USER -c "$DAEMON -f"
while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done
su $USER -c "$WEB --quiet & "
su $USER -c "$SOCKET & "
echo "$NAME."
;;
The big problem is that although I have indicated and will sign that the process does not want to run in the background :( any ideas
Thank!
source
share