aMule Forum

English => Feature requests => Topic started by: carpelo on June 21, 2005, 05:34:08 PM

Title: Amulecmd : Search
Post by: carpelo on June 21, 2005, 05:34:08 PM
I would like to search for files like i did with mldonkey, just from the console.

Is it possible to create the search command for next releases?
Title: Re: Amulecmd : Search
Post by: skolnick on June 22, 2005, 02:40:32 AM
Isn't that what amuled + amulecmd are for?

Regards.
Title: Re: Amulecmd : Search
Post by: stefanero on June 22, 2005, 08:33:49 AM
skolnick: you cannot search with amulecmd....but you can with amuleweb ;)
Title: Re: Amulecmd : Search
Post by: skolnick on June 22, 2005, 01:15:30 PM
Fine, I have never used amulecmd, so I had no idea about the no-searching issue. But amuleweb seems a fine solution.

Regards.

PS & OT: my browser lost the ability to show the "quick reply" option on these forums...why could be that? forums options?

Regards.
Title: Re: Amulecmd : Search
Post by: stefanero on June 22, 2005, 01:41:00 PM
deltaHF updatet the forum and forgot this nice little plugin...I told him already  :]
Title: Re: Amulecmd : Search
Post by: Mr Faber on June 22, 2005, 02:44:27 PM
I think it is usefull because amuleweb or at least the templates aren't text browser compatbile because of Java Script. Another advantage is the easy script usage of amulecmd.

cu
Mr Faber
Title: Re: Amulecmd : Search
Post by: lfroen on June 22, 2005, 03:34:08 PM
Mr Faber: while making search from amulecmd is technically possible, it's almost unusable. You have 2 alternatives: web and amulegui.

As for text-based browser: well, how to put this gently ? Get rid of it. Even palmos have full-featured, java+javascript supporting browser. There's 2 ways to run scripts: server-side and client side. Server can't (I'm still thinking on a way to add it). But, almost all client (browser) can. So, since by now there's no script on server-side - client have to do the work.
Title: Re: Amulecmd : Search
Post by: Mr Faber on June 22, 2005, 06:10:35 PM
If someone only have a terminal pc he can use aMule too if he can search with amulecmd or if amuleweb is accessable through text browsers.
JavaScript is good as an extra part like controlling inputs but the template should still be usable in most cases without JavaScript like many webpages out there.
You can log in with links but after login you can't see any page because every link needs JavaScript.

I mean simple bash scripts. I use amulecmd often with them updating ipfilter list or shared files or add ed2k links from an other computer. Thats only possible with amulecmd as far as I know. If amulecmd can search it is possible to create a basic interface only working with scripts without knowing one line ec2.

cu
Mr Faber
Title: Re: Amulecmd : Search
Post by: lfroen on June 22, 2005, 08:21:57 PM
Quote
You can log in with links but after login you can't see any page because every link needs JavaScript.

We have to use it because there's no server side scripts. But - I'm working on it.

Quote
If someone only have a terminal pc

What is "terminal PC" ? Even P2 can run X. This must be some really marginal environment, like remote terminal.

Quote
I mean simple bash scripts

This is even worse. Bash can't do regexp check. And filenames often contain chars from other languages. How would you handle it ? Ask from amulecmd to base64-encode it ?

Conclusions:
1. After amuleweb will have scripts, you will be able to create template without javascript (or any other script)
2. Search capability of amule / amulecmd  (it must be implemented on both sides, FYI) is not even "nice-to-have" and I personaly not going to code it. May be other people think differently - it's open source, you know.
Title: Re: Amulecmd : Search
Post by: carpelo on June 22, 2005, 10:38:49 PM
The fact is that i connect to my home computer from a remote computer with SSH (i mean, i'm not interested in amuleweb for instance as i can't connect from remote shells), and for me amulecmd is the best way to check the downloads, uploads, set bandwith....
The only thing, and important one i think, that i miss is to be able to Search.
Since i connect to my homepc with SSH, i need console commands to work with amule.

I know that mldonkey's search command is quite effective, and it's used by many people as the main way of looking for files.

i understand that not all can be possible for now.
Anyway, congratulations for your work, you, amule dev team
Title: Re: Amulecmd : Search
Post by: Mr Faber on June 22, 2005, 11:14:33 PM
That's what I mean with a terminal pc. I really like the console and often use ssh.
The big advantage of aMule IMHO is the aMuled and it should be possible to administrate it without useing and X-Server.
Thats why I asked in past for changing preferences through amulecmd. Without this it is impossible to change preferences without restarting amuled. Remote-Gui isn't so good for slow connections.
With searching in amulecmd the biggest part of aMule should be accessable without a GUI.

cu
Mr Faber
Title: Re: Amulecmd : Search
Post by: Kry on June 22, 2005, 11:15:38 PM
I still don't know why is it unusable. What's the problem lfroen?
Title: Re: Amulecmd : Search
Post by: lfroen on June 23, 2005, 05:25:09 AM
Kry: it's not that you can't make it usable. It's not that easy as people mignt think. And, what's more impotent - you don't really need it.
carpelo: In every place where you can use ssh, you can tunnel your connection to amuleweb, so it's not a real problem, sorry.
Since you can't automize search, you're going to do this manually anyway. You've got so weird setup that you do have command line but can't yse browser ? Must be joking :) amulecmd is for automated tasks, like change speeds / ipfilter from cron. Or shutdown from "at". Or print stats. For interactive tasks (search!) go fix your setup and use browser.
Title: Re: Amulecmd : Search
Post by: Kry on June 23, 2005, 10:29:26 AM
I don't agree, lfroen. Accessing via ssh only is not so weird setud. And it doesn't hurt to add new stuff to amulecmd. You don't want to do it? I'ts ok for me, but don't say the idea is stupid. Other people might want to do it themselves.
Title: Re: Amulecmd : Search
Post by: phoenix on June 23, 2005, 01:30:58 PM
Well, adding a local search command that returns a numbered list and then adding an "add from search" command that uses the returned number should be easy and usable.

Cheers!
Title: Re: Amulecmd : Search
Post by: Kry on June 23, 2005, 02:24:03 PM
That's what I'm thinking about.

BTW: why is lgobal not possible? We have it on webserver.
Title: Re: Amulecmd : Search
Post by: lfroen on June 23, 2005, 04:27:34 PM
You need to add it on core side too (just like with amuleweb). You should encode filename before printing it out to console.
Yes, you can have global search in same way as amuleweb.

Quote
but don't say the idea is stupid.

Never said it's stupid. Did said "practically unusable".

Quote
Accessing via ssh only is not so weird setud

No, not so weird. But "ssh - yes, browser - no" is weird. Remember about ssh tunneling feature.
Title: Re: Amulecmd : Search
Post by: phoenix on June 24, 2005, 03:59:09 AM
Quote
Originally posted by Kry
BTW: why is lgobal not possible? We have it on webserver.
Yes, it is possible, but clumsy from a console interface point of view. Would the results be returned while the prompt is already shown? Would look something like a program running in the background and printing the results on the screen. In this case, there should be a command to cancel the search too, it can take some time to complete a global search. Also, some printf at the end of the search would be nice too, so that the user know that it is over.

Cheers!
Title: Re: Amulecmd : Search
Post by: GonoszTopi on June 24, 2005, 08:28:00 PM
Could be done same as in webserver, eg, user starts searching with 'search somefile', then later he types 'showsearchresults', and the already fetched results will be displayed. Just an idea.
Title: Re: Amulecmd : Search
Post by: Kry on June 25, 2005, 01:32:22 AM
That was what I was thinking about.
Title: Re: Amulecmd : Search
Post by: carpelo on September 04, 2005, 03:47:53 PM
hi again,

do you know if someone is working on it?

thanks in advance