aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: filter amulecmd results  (Read 1873 times)

titi75011

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 18
filter amulecmd results
« on: September 19, 2014, 02:13:50 PM »

Hi,

I would like to filter amulecmd result after a search. I didn't find a way to do it with the "search" of amulecmd therefore I'm trying to do it with a script :
echo Results > tmp
amulecmd -c results | grep "my key work for filter" | awk -F '.' '{print "download " $1}' >> tmp
cat tmp | amulecmd

My problem is that the result name returned by "amulecmd -c results" is limited to 77 char. Which is not enough.

Is there a way to change this "77" value? Or an other way to implement filters?

Thanks
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: filter amulecmd results
« Reply #1 on: September 19, 2014, 09:01:58 PM »

What do you want to accomplish? Download everything that matches some pattern? That doesn't make sense to me.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

titi75011

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 18
Re: filter amulecmd results
« Reply #2 on: September 21, 2014, 07:29:33 PM »

my problem comes from the fact the result's name are truncated. I made a request here : http://forum.amule.org/index.php?topic=20687.0
Logged