aMule Forum

English => aMule Help => Topic started by: DigitoErgoSum on October 05, 2005, 06:46:06 PM

Title: Add ed2k via amulecmd -c
Post by: DigitoErgoSum on October 05, 2005, 06:46:06 PM
Hi all,
i tried to add an ed2k file to amuled:
Quote
verbo ~ # amulecmd -P ****** -c Add ed2k://|file|******|734*******0|3894B64A2BD9********3070|h=F3VX4FV******AC66T27O|/
Usage: file [-bcikLnNsvz] [-f namefile] [-F separator] [-m magicfiles] file...
       file -C -m magicfiles
Try `file --help' for more information.
-bash: ******: command not found
-bash: 73***20: command not found
-bash: 3894******70: command not found
-bash: /: is a directory
Unexpected parameter 'ed2k://'
Usage: aMule [--help] [-h ] [-p ] [-P ] [-f ] [-q] [-v] [-l ] [-w] [--create-config-from ] [--version] [-c ]
  --help                        Show this help text.
  -h, --host=              Host where aMule is running. (default: localhost)
  -p, --port=              aMule's port for External Connection. (default: 4712)
  -P, --password=          External Connection password.
  -f, --config-file=       Read configuration from file.
  -q, --quiet                   Do not print any output to stdout.
  -v, --verbose                 Be verbose - show also debug messages.
  -l, --locale=            Sets program locale (language).
  -w, --write-config            Write command line options to config file.
  --create-config-from=    Creates config file based on aMule's config file.
  --version                     Print program version.
  -c, --command=           Execute and exit.
Is there any way to make it works ???
I think that you should set -c Add to works with a text file... such as amulecmd -c Add file.txt.
In file.txt there are the ed2k and amuled should read and digest them line-per-line...
I think that this would be a powerful things 'cause users could edit a text file on their webpage, after this with dcron, wget and amulecmd they will enter download every X hours...
It sounds userful :D

Byez
Title: Re: Add ed2k via amulecmd -c
Post by: lionel77 on October 05, 2005, 07:19:37 PM
1) I think the problem is that you did not include the command in quotes, so try:
amulecmd -P ****** -c "Add ed2k://|file|******|734*******0|3894B64A2BD9********3070|h=F3VX4FV******AC66T27O|/"

2) There is already a way to read in links from a text file. Just move/rename the text file to "~/aMule/ED2KLinks" and the links get automatically added and the file then deleted.

:)


[Btw, I've moved the thread from "Feature Request" to "aMule Help".]
Title: Re: Add ed2k via amulecmd -c
Post by: DigitoErgoSum on October 05, 2005, 07:46:28 PM
Quote
Originally posted by lionel77
2) There is already a way to read in links from a text file. Just move/rename the text file to "~/aMule/ED2KLinks" and the links get automatically added and the file then deleted.
MMMMMM i'll use this :D
Thank you.

Bye