How to make "top" run in a window?

I want to make top command run in a window. “top” command can be run in terminal, but if I want to make a shortcut for it be run in a window I get a message “top: failed tty get”, so as I’m only learning, I need your help, thanks!

Run it in a terminal in a window. E.g. the launch command should be

konsole -e top

letian wrote:
> I want to make top command run in a window.

try


xterm top

and, have a lot of fun!


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

Oh! that’s easy, many thanks.

You can create a .desktop file in your ~/Desktop directory and/or use htop instead of top (install with: zypper in htop)

#!/usr/bin/env xdg-open
[Desktop Entry]
Comment=display Linux tasks
Name=Top
Exec=htop 
Icon=htop
Terminal=true
MultipleArgs=false
Type=Application

If you prefer top, edit the two lines highlighted in red, replace ‘htop’ with ‘top’ in the Exec line and change the icon with whatever you like.

I’m new to Opensuse (coming from Lubuntu). I use Opensuse 11.4 (Tumbleweed) + LXDE. I’ve installed HTOP and when i want to launch it in the menu, LXterminal starts but stays black. The only way to open htop is to first open LXterminal and then type “htop”.
Can you help me to solve this?

On 2011-03-27 11:06, tlh21 wrote:
>
> I’m new to Opensuse (coming from Lubuntu). I use Opensuse 11.4
> (Tumbleweed) + LXDE. I’ve installed HTOP and when i want to launch it in
> the menu, LXterminal starts but stays black. The only way to open htop
> is to first open LXterminal and then type “htop”.
> Can you help me to solve this?

Tumbleweed related questions should go to the factory mail list.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)