aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Some improvements for amulecmd  (Read 4101 times)

theCAS

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Some improvements for amulecmd
« on: January 30, 2006, 01:08:51 PM »

Hello everybody, since I installed it on my monitorless server I find myself using amulecmd for controlling it.

I think amulecmd can use some features to bring it at the same level of emuleweb.

1) current file list

As it is now it displays little info on a single line, using a multiline approach allows you to display more info without making it messy.

Eg
Code: [Select]
> 1. filename [43,3%] *
>    2/95 + 7
>    Hash: A653483484625274736237465473733
>    Progress: D11335d200344D6746374D34767777D
>    Last seen complete: 12/12/2005 23:10:54

1.: Download number. (easier than writing the hash ;) )
*: comments for this file have been found.
+7: sources found but asked for another file
Progress: Progress, current download and water level:
       D: Chunk downloaded
       d: chunk in download
       0-9: number of source for the chunk found 0: none 9: 100 sources

Some new commands:
showcomments : shows comments for the file
showqr : shows queue rating for the file
  Eg.
        > place 0-100: 32 [23%] sources...
        > place 100-250: 47 [40%] sources...


2) search and download (interactive mode)
Text in italic is what you type.

Search for something:
> search
> Search mode ([Kad],ED2k,Global): Kad
> Keywords: debian sarge
> Extension [Any]: iso rar
> Min sources [Any]:
> Search started...

Display search status
> show search
> 1. debian sarge, 220 results, in progress...
> show search
> 1. debian sarge, 240 results, done.

Display search results
> displayresults 1
> 1. debian_sarge_r1.iso, 230 sources, size: 640MB
> 2. debian_sarge_r0a.iso, 10 sources, size: 636MB

Download from search results
> download 1,1 (first result from search 1)
> Downloading debian_sarge_r1.iso...

Second search
> search
> Search mode ([Kad],ED2k,Global):
> Keywords: amule
> Extension [Any]:
> Min sources [Any]:
> Search started...
> show search
> 1. debian sarge, 240 results, done.
> 2. amule, 20 sources, in progress...

Removing search results
> removesearch 1
> show search
> 1. amule, 20 sources, done.
Logged

lfroen

  • Guest
Re: Some improvements for amulecmd
« Reply #1 on: January 30, 2006, 04:33:05 PM »

Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Some improvements for amulecmd
« Reply #2 on: January 30, 2006, 04:45:47 PM »

I find the ideas interesting, however I'm against 2 things:

a) multiline: too much space asted
2) search with interactive prompt: I don't like it. better to define a syntax on the command itself.
Logged

theCAS

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Some improvements for amulecmd
« Reply #3 on: January 30, 2006, 05:21:20 PM »

@lfroen
I read the thread, in fact I tried to reduce every command to a single parameter.
Now I understand that the problem must be structural but if amuleweb can manage multiple parameters, can amulecmd be modified to do the same?

Right now the only way to initiate a download in amulecmd is using an ed2k link, don't you think that that is a limitation?

@kry
With the new data a single line for each file won't probably be enough, isn't better to insert proper line breaks?

About the interactive mode, can't both method be implemented?

Eg.
> show ul
> (upload list)

> show
> Display ([DL],UL,Servers): UL
> (upload list)

The best of both worlds, it can be even faster if you need defaults.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Some improvements for amulecmd
« Reply #4 on: January 30, 2006, 05:48:33 PM »

I don't see where the interactive mode is any improvement over the single line commands.
Logged

Alex/AT

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • http://anime.atcg.info
Re: Some improvements for amulecmd
« Reply #5 on: March 03, 2006, 07:26:55 PM »

Well, may I add my tiny vote for this request too )
One of two things needed for normal remote control of amule is:

1. Complete amulecmd, with all the features (to use in scripts by calling it).
2. Complete specifications on current remote control protocol (to make third-party implementations without having need to read all the code).

Well, either one would be quite benefical )))
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Some improvements for amulecmd
« Reply #6 on: March 04, 2006, 12:47:41 AM »

Uh... the protocol is documented on docs/
Logged

Alex/AT

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • http://anime.atcg.info
Re: Some improvements for amulecmd
« Reply #7 on: March 04, 2006, 06:23:51 PM »

And what about TAG list and request/response subformats? (Sorry if I didn't find them) (using ECCodes.h and ExternalConn.cpp is not a good way to go)...
« Last Edit: March 04, 2006, 06:31:27 PM by Alex/AT »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Some improvements for amulecmd
« Reply #8 on: March 04, 2006, 06:44:35 PM »

That's more like some work for whoever wants to do it :)

*points at userbase*
Logged