LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2005, 04:23 PM   #1
toolshed
Member
 
Registered: Aug 2001
Location: North Ka-Ki-Lak-i
Distribution: Fedora
Posts: 79

Rep: Reputation: 15
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
 
Old 01-31-2005, 04:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 01-31-2005, 04:36 PM   #3
toolshed
Member
 
Registered: Aug 2001
Location: North Ka-Ki-Lak-i
Distribution: Fedora
Posts: 79

Original Poster
Rep: Reputation: 15
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.
 
Old 01-31-2005, 04:44 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 02-01-2005, 03:54 PM   #5
toolshed
Member
 
Registered: Aug 2001
Location: North Ka-Ki-Lak-i
Distribution: Fedora
Posts: 79

Original Poster
Rep: Reputation: 15
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.
 
Old 02-01-2005, 04:01 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 02-01-2005, 04:29 PM   #7
toolshed
Member
 
Registered: Aug 2001
Location: North Ka-Ki-Lak-i
Distribution: Fedora
Posts: 79

Original Poster
Rep: Reputation: 15
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
 
Old 02-01-2005, 04:45 PM   #8
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Do you have to use top? Why not just issue a
Code:
ps ax
?

That'll give you the entire command.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
full path of a file ttilt Linux - General 1 11-08-2005 06:02 PM
Can't see process with ps or top Lemon Songster Linux - Newbie 0 10-23-2004 08:52 AM
Need to specify the full URL path.. Why? soichih Linux - Networking 3 07-31-2004 08:37 AM
Full Path problems chedmaster Linux - Newbie 1 06-26-2003 10:24 AM
How to get executable's full path using C/C++? oldbee Programming 6 02-19-2002 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration