aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2] 3

Author Topic: Full amule control by amulecmd  (Read 25021 times)

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Full amule control by amulecmd
« Reply #15 on: March 13, 2009, 07:50:58 PM »

You can be paranoid without bloating the applications, you know? Develop your own nodes.dat reader as an exercise.

Mind you, flushing the config files with a EC command sounds great to me, but exporting the kad routing table to text? I'm afraid not.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Full amule control by amulecmd
« Reply #16 on: March 14, 2009, 09:09:56 PM »

Code: [Select]
$ cd src/utils/fileview
$ make
$ ./mulefileview ~/.aMule/nodes.dat

Or see dumping nodes.dat
« Last Edit: March 14, 2009, 09:18:48 PM by GonoszTopi »
Logged
concordia cum veritate

gecko1973

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Full amule control by amulecmd
« Reply #17 on: May 13, 2009, 12:25:59 PM »

Some features I'd like to see added to the amulecmd command line in order of my preference are:

- Ability to rename the file of an existing download.

- Ability to swap every A4AF to a particular file.

- Ability to swap every A4AF from a particular file to any other file.

- Ability to show file details as per the amule GUI.

If any of  the above can be achieve now from the command line it would be handy if someone could show me how.

Thanks.
Logged

gav616

  • Guest
Re: Full amule control by amulecmd
« Reply #18 on: June 02, 2009, 02:34:48 AM »

my request is for a mini aMuleGUI in console form, getting rid of the typing in of separate commands and just have something like other terminal apps i.e.like mp3blaster.


seeing all those GUI tabs (Kad, shared files) in a CLI would be so cute. :P

(would also be bloody awesome)
« Last Edit: June 02, 2009, 02:42:42 AM by gav616 »
Logged

Il Mangia Fagioli

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Full amule control by amulecmd
« Reply #19 on: June 10, 2009, 12:04:30 PM »

'Was thinking that being possible to read from shell alternative names given by others to current downloading files would allow to easily implement simple third parts scripts able to strongly check for fakes, since a/eMule are getting in a floody state.
Logged

Il Mangia Fagioli

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Full amule control by amulecmd
« Reply #20 on: June 11, 2009, 11:06:30 AM »

aMule works well with ed2k, but in kad it's hard to find no-fake file.
Logged

minage

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 117
Re: Full amule control by amulecmd
« Reply #21 on: July 07, 2009, 11:12:19 AM »

aMule works well with ed2k, but in kad it's hard to find no-fake file.

i can say the opposite  ::)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Full amule control by amulecmd
« Reply #22 on: July 08, 2009, 11:13:35 PM »

Well, it depends on what you look for.  :D
IMF, you would wonder how hard it is to put a little human common sense into a script to detect fakes.
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

p.r.

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
Re: Full amule control by amulecmd
« Reply #23 on: January 23, 2010, 10:57:05 PM »

is it possible to implement amulecmd commands to manage friends slots?
Logged

gwpl

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Full amule control by amulecmd
« Reply #24 on: February 24, 2010, 01:52:50 PM »

I kindly wish amulecmd to have "verbose" mode in giving Results (maybe in other commands too, like "Show DL", "Show UL", "Show Servers").

What I imagine is detailed Results list format (maybe "Results detailed" , "Results -v" ... ?),
with all internal information about found result, like "ed2k" key, comment... etc.
Maybe it might look like:
$ amulecmd -c "Results detailed"
Results-found: R
Result-id: 0
Filesize: ..... bytes
Filename-0: first known filenamename for such ed2k sum
Filename-1: second known filenamename for such ed2k sum...
...
Filename-n: nth known filenamename for such ed2k sum
ed2k-simple: ed2k:// ....
ed2k-with-hosts: ed2k:// ...
...
Server-0: ip:port of first hosting serwer gound
....
etc.
[empty line]
Result-id: 1
.....
[empty line]
Result-id: R-1
....


I don't know what data are available internally, so I am only making guesses. I hope example makes it quite understandable.

Purpose:
I'd like to make wrapper around amulecmd, that will make some processing for results searches. Like: archiving, statistics about file availbility (trends in popularity of given files, to show which files to download before they disappear... maybe archiving search results in sqlite3 database?), look for files on ma HDD with simmilar filenames, to suggest "Hey, you have file with simmilar silename, do you want to download it" ... etc.

I wondered about other feature request, some simple C/C++ api, that I could wrap with http://www.swig.org/ to make amulelib accesible thought not only C/C++ but also other programming languages. But I guessed that it might be bigger effort, and maybe not worth , while there is amulecmd, which can be extended in nice way, to make it a reusable "bridge" for other utilities. How do you think?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Full amule control by amulecmd
« Reply #25 on: February 24, 2010, 06:13:09 PM »

I wondered about other feature request, some simple C/C++ api, that I could wrap with http://www.swig.org/ to make amulelib accesible thought not only C/C++ but also other programming languages.
Sometimes dreams may come true. Btw, there is an incomplete python binding that works.

Btw your request makes sense, amulecmd could be turned into a really powerful tool.
Logged
concordia cum veritate

gwpl

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Full amule control by amulecmd
« Reply #26 on: February 24, 2010, 08:58:41 PM »

Hi,

I've checked out "EC for Python" post http://forum.amule.org/index.php?topic=17548.0, cloned mercurial repo from https://code.google.com/p/pyamulecmd/ and must say, I have good first impression ;). More comments according this python binding I move to mentioned forum topic.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Full amule control by amulecmd
« Reply #27 on: February 24, 2010, 09:30:33 PM »

Btw your request makes sense, amulecmd could be turned into a really powerful tool.
Hmm - you mean instead of portable EC bindings, just make a tool that prints (and reads) machine-readable text output and work your way from there?
But for that I'd rather suggest XML syntax. Taking a detail request and print its result as XML output shouldn't be too hard.
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

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Full amule control by amulecmd
« Reply #28 on: February 24, 2010, 09:58:04 PM »

That makes sense too.
Logged
concordia cum veritate

gwpl

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Full amule control by amulecmd
« Reply #29 on: February 24, 2010, 10:40:33 PM »

To me XML  :-\  is overweighted standard.
I prefer using other (also very popular) fast, light and with many programming languages support like:

:D json - http://www.json.org/  (look, how many programming languages supported and how short specification is ! (2 A4 pages comparing to thousands of XML)....

for binary serialization:
:D Protocol Buffers - fast and light machine readable format comes from Google http://code.google.com/apis/protocolbuffers/ and it opensourced ! Originally with C++, Python, java support, but look at ThirdPartyAddony http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns , plenty of other langauges there. (Not to tell about RPC frameworks like http://zeroc.com/ice.html ).

So for it, I would encourage light, simple formats and following http://en.wikipedia.org/wiki/KISS_principle, but that's my personal feeling and I understands arugments that xml might make some sense to someone else ;).
Logged
Pages: 1 [2] 3