aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Commands of amulecmd?  (Read 4475 times)

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Commands of amulecmd?
« on: November 16, 2005, 03:09:19 AM »

Hello aMule-team,

some time ago i used amulecmd to handle the bandwidth-limits but seems in my cvs-build (Snapshot: Fri Nov  4) some things have changed. Typing help in amulecmd shows that Set and Get are the commands to change or get values of amule-vars. It is said that 'SET BWLIMIT UP' should set the upload-bandwidth-limit, but typing 'SET BWLIMIT UP 10' doesn't work and outputs ''Unknown extension '10' for the 'Set BwLimit Up' command''.
How can i set and get the bandwith-values? What other values can i get and change with 'Set' and 'Get'?

Greetings,
Chris
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Commands of amulecmd?
« Reply #1 on: November 16, 2005, 08:42:54 AM »

Huh? I'll check it.
Logged
concordia cum veritate

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Commands of amulecmd?
« Reply #2 on: November 16, 2005, 08:50:57 AM »

Funny, it works here.

Code: [Select]
aMulecmd$ set bwlimit up 10
 > Operation was successful.
 > Bandwidth Limits: Up: 10 kB/s, Down: 128 kB/s.
The only reason I can see for your problem is that wxString::ToULong() cannot convert '10' to a number -- which is unlikely.

Quote
What other values can i get and change with 'Set' and 'Get'?
Try 'help set' and 'help get' :P
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: Commands of amulecmd?
« Reply #3 on: November 16, 2005, 01:10:57 PM »

Code: [Select]
server:~ # amulecmd --version
amulecmd CVS using wxGTK2 v2.6.2 (Snapshot: Fri Nov  4 07:02:05 CET 2005)

server:~ # amulecmd -P ******** -c "get bwlimit down"
This command should not have any parameters.

Set seems to work, but what do i do wrong with Get?

Greetings,
Chris
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Commands of amulecmd?
« Reply #4 on: November 17, 2005, 12:27:59 PM »

At the moment, it's called "get bwlimits" and shows both upload and download bandwidth limit.

If it's necessary, separate commands can be added for getting upload and download bandwidth limits.
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: Commands of amulecmd?
« Reply #5 on: November 17, 2005, 05:41:32 PM »

Hello GonoszTopi,

thank you for the information! 'get bwlimits' suits my needs fully.
It would be very handy if the 'get' and 'set' commands could have access to all config-vars and should have the same var-names to access them. And even more important (at least for me) is to have more control over the downloads through amulecmd, like setting the priority for files, pausing, removing etc.
Is this planned to be implemented in near future?

Greetings & thanks,
Chris
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Commands of amulecmd?
« Reply #6 on: November 20, 2005, 12:05:22 PM »

Hello PsychoChris,

first of all we created the new command set because it's expansible. We plan to implement more features into amulecmd, to make it able to control almost all aspects of a running core from the command line.

I have a lot of ideas, but I'm also open for suggestions.

Greetings,
GonoszTopi.
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: Commands of amulecmd?
« Reply #7 on: November 21, 2005, 01:03:16 AM »

Hello GonoszTopi,

sounds good, i mean 'expansible'! Like i mentioned: Very usefull would be to have more control over the files i download. So removing, changing their priority and pausing are the most needed functions. I (and hopefully not only i) would be glad to find this functions in amulecmd.

Greetings,
Chris
Logged