aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: remote handling links  (Read 1819 times)

bidnet

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
remote handling links
« 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
Logged

woutermense

  • Full Member
  • ***
  • Karma: 18
  • Offline Offline
  • Posts: 154
Re: remote handling links
« Reply #1 on: February 15, 2010, 10:46:55 PM »

What's inside $1 ? If there are additional " it wont work.
Logged

bidnet

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: remote handling links
« Reply #2 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.
Logged

woutermense

  • Full Member
  • ***
  • Karma: 18
  • Offline Offline
  • Posts: 154
Re: remote handling links
« Reply #3 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
Logged