aMule Forum
English => aMule Help => Topic started by: michelinok on February 06, 2011, 06:20:54 PM
-
Hi!
I've set this command
echo %NAME >> /hddext/filesharingscaricati.txt
on downoad completed, but it never write anything to the file.
What am i wrong? (/hddext exists of course!).
-
You have to name an executable, not a shell command. For that you have to name the shell to be executed.
Just putting your line in an executable shell script and using that should work.
-
Also see
sh -c "echo %NAME >> ...."
-
Should this work?
#!/bin/bash
echo "$1" >> /hddext/filesharingscaricati.txt
it doesn't work at all...(i call it with the name of the script followed by %NAME)
-
Did you chmod 700 the script and chown it to the user that runs aMule?
-
Did you chmod 700 the script and chown it to the user that runs aMule?
yes, chmod'ed and tryed it from the command line...and from the command line it works.
Any idea?
-
anyone can help me? ::)
-
Should this work?
#!/bin/bash
echo "$1" >> /hddext/filesharingscaricati.txt
it doesn't work at all...(i call it with the name of the script followed by %NAME)
You have to add the full path to the script, not only the name of the script.
-
Should this work?
#!/bin/bash
echo "$1" >> /hddext/filesharingscaricati.txt
it doesn't work at all...(i call it with the name of the script followed by %NAME)
You have to add the full path to the script, not only the name of the script.
yes, this is what i've done:
sh /bin/scrivi.sh %NAME
anyway "scrivi.sh" is in the path and works anywhere in my filesystem.
I've no idea now :-[ :-[ :'(
-
Do you run aMule with the same user that you execute the script in the terminal?
I tested the core command for completed downloads with a script located in my home directory. It worked.
I would suggest to copy the script to a different location. Scripts shouldn't be stored in the "/bin" directory.
Perhaps try to store it in the home folder and run aMule with the user who's home folder it is located in.