aMule Forum

English => aMule Help => Topic started by: bidnet on February 14, 2010, 06:16:26 PM

Title: remote handling links
Post by: bidnet on February 14, 2010, 06:16:26 PM
Hi, I followed the guide about handling ed2k link using Firefox and everything was ok!! Now I'm trying to handle ed2k link remotely (on a server) so wrote a little script:

Code:

#! /bin/bash
amulecmd -h my_server_ip -P ext_pass_connec_ -c "Add $1"


Naturally, now network.protocol-handler.app.ed2k points to the script you can see above (the script is executable: chmod +x)

My problem is that it does not work :-(
It works only if I open terminal and write the line with a normal ed2k link rather than $1.

Can anyone help me ??
Thans in advance
Title: Re: remote handling links
Post by: woutermense on February 15, 2010, 10:46:55 PM
What's inside $1 ? If there are additional " it wont work.
Title: Re: remote handling links
Post by: bidnet on February 16, 2010, 08:33:49 PM
I $1 is the ed2k link send by firefox.
I try with and without ", it doesn't work better.
Title: Re: remote handling links
Post by: woutermense on February 18, 2010, 05:07:54 PM
Not exactly what I meant, just add the line

echo $1

in the script and tell what it says