Using the WebMin/Others/Command Shell

4 posts / 0 new
Last post
#1 Wed, 04/08/2009 - 22:26
Anonymous

Using the WebMin/Others/Command Shell

Hi,

I have been using Putty because I didn't realise that there was a command shell under webmin :o

Anyway I want to make sure I can use PEAR:mail and a tutorial says this:

If you already have pear installed on your server, you can install the pear mail extension by entering the following command. # pear install mail # pear install Net_SMTP # pear install mail_mime

Now my question is: where it says "by entering the following command" does that mean I can enter it using this command shell ?

And - now I have found this command shell, I guess that I don't need putty ?<br><br>Post edited by: Davvit, at: 2009/04/08 22:27

Wed, 04/08/2009 - 22:42
Joe
Joe's picture

<div class='quote'>And - now I have found this command shell, I guess that I don't need putty ?</div>

Wrong direction. PuTTY is far more capable than Command Shell.

Command Shell is a non-interactive. It is not a replacement for a real shell. It is merely a quick and dirty way to run commands when you don't want to take the time, or don't have access to, a real shell.

I'm pretty sure using pear in the Command Shell is a bad idea. If it wants to ask any questions, it won't be able to. Again, it's a non-interactive shell...so anything that needs to ask questions, will fail. Things like top will also fail.

There is a Java applet ssh client in Webmin, as well, that does provide an interactive shell, but it doesn't support the current ssh protocol, and if you don't have a valid verifiable SSL certificate it will probably give you troubles (the Java plugin is particularly ornery about SSL certs).

Stick with PuTTY for any serious command line work. It's a very good ssh client.

--

Check out the forum guidelines!

Thu, 04/09/2009 - 04:04
Davvit

Thanks for that .

Wow - just as well I asked !

seeing the # prompt in both, I could
have just assumed that they did the same thing !!

Thu, 04/09/2009 - 09:03 (Reply to #3)
Joe
Joe's picture

Command Shell doesn't have a # prompt. It has a text entry field and an &quot;Execute Command:&quot; button.

When the documentation overhaul happens in a few weeks, I'll make sure Command Shell gets online help that explains this fact. The Webmin documentation <i>does</i> cover Command Shell, so no need to be in the dark about it (the Webmin wiki has docs for almost everything in Webmin...almost nothing is mysterious or poorly documented at this point):

http://doxfer.com/Webmin/CommandShell#The_Command_Shell_module

--

Check out the forum guidelines!

Topic locked