LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   top process full path (https://www.linuxquestions.org/questions/linux-software-2/top-process-full-path-284613/)

toolshed 01-31-2005 04:23 PM

top process full path
 
Does anyone know to show the full path of the process when issuing the top command?

I have a complicated command that I need to see the full command, not just a trucated version of it.

top
and
top -c
//does not show the full command either, just a trucated version

Tinkster 01-31-2005 04:30 PM

Code:

  302 root      16  0 58556  30m 4648 S  0.3  6.1  2:34.82 /usr/X11R6/bin/X -auth /usr/X11R6/lib/X11/xdm/authdir/authfiles/A:0-bL4c3e
That's from top -c ... how much more detail do you need? :)


Cheers,
Tink

toolshed 01-31-2005 04:36 PM

The command is trucated in top. After X amount of characters for command stat, top truncates the output.

Ex. After 60 characters top leaves the rest off.

There has to be a way, because I have seen where the output I am looking for is produced.

top -c still trucates the command. If there was someway I could turn on a wrap-around feature that would be nice.

Tinkster 01-31-2005 04:44 PM

Ummm ... make the terminal wider?
Or use batch and redirect the output to a file...


Cheers,
Tink

toolshed 02-01-2005 03:54 PM

Try all those options before and nothing seems to work. I might have to call Shaggy and the gang on this one, it is a mystery.

Tinkster 02-01-2005 04:01 PM

Are you doing this in an xterm or what? What's the
echo $TERM
? I feel quite confident that the problem is due to
your setup rather than a problem of top ... even deadrat/
fudora can't screw top up that badly ;)


Cheers,
Tink

toolshed 02-01-2005 04:29 PM

I agree, I think this is an issue with the terminal. That is the reason I am looking for some way either to wrap around or hortizontal scroll. It would not make sense at all for top to truncate when you specific the -c option.

echo $TERM = xterm.

I have tried both in gnome-shell and xterm. I just cant find an option to extend hortizontal scroll.

BTW, RH3.0AS

jiml8 02-01-2005 04:45 PM

Do you have to use top? Why not just issue a
Code:

ps ax
?

That'll give you the entire command.


All times are GMT -5. The time now is 12:12 AM.