The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Capture entire line in ps command MizzGail Shell Programming and Scripting 2 05-08-2008 01:46 PM
Read the entire output fired by ps command vinithepoo UNIX for Advanced & Expert Users 5 01-19-2008 09:24 AM
Copy and entire folder except one vibhor_agarwali UNIX for Dummies Questions & Answers 6 10-12-2007 09:02 AM
Back-up/Mirror entire website jambesh Shell Programming and Scripting 2 02-23-2007 05:54 AM
Copy entire disk in FC3 dangral Linux 11 02-22-2006 08:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-13-2006
Terrible
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Getting entire command from ps -ef

now, when you run ps -ef, the very last field of the output contains the command. now, most of the time, these command are cut off and one can not see the complete name of the command that kicked off the process.

is there anyway to get this information? i mean, the complete command in its entirety. i hope i'm clear enough in my explanation. thanks
  #2 (permalink)  
Old 08-13-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
What OS are you using? On BSD, you can use the 'w' switch to get more of the command line, on Solaris, you can use /usr/ucb/ps with the 'w' switch as well. If you are on HP-UX, you might try using the 'l' (ell) switch, but that will also slice off part of the command line. In Linux, use the normal ps command without the '-' so that it will behave like the BSD ps (says so on the man page atleast).
  #3 (permalink)  
Old 08-13-2006
Terrible
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
we are using solaris and linux systems here.

thanks
  #4 (permalink)  
Old 08-14-2006
apoorvasharma80 apoorvasharma80 is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 69
If you are only interested in the command names only then you can also try

ps -ef | awk '{ print $8}'

regards
Apoorva Kumar
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0