The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 06:06 PM
Retrieving the full command trocadero HP-UX 1 05-19-2007 07:14 AM
mv command if you dont know the full name of the file absolutdani UNIX for Dummies Questions & Answers 2 05-11-2007 04:46 AM
Getting the process full command line fredy AIX 0 12-21-2006 03:06 AM
display full unix path as part of the command line ocelot UNIX for Dummies Questions & Answers 3 10-10-2006 02:58 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 11-08-2006
fredy fredy is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 14
Full command line sun 5.10

Hi,
I am running on Sun10 platform. I am trying to retrieve the full command line for a process by running ps (/usr/bin/ps or /usr/ucb/ps).

Running the "/usr/ucb/ps -agxuwwwww PID" with the user that executed the process i get the full command line. Running the same command with another user on the same process , return only a part of the command.

Is there a way to get the full command, for processes that their user is not the user that started the process?

Another interesting issue is when running "/usr/ucb/ps -e PID", it works fine. Trying to capture the output to a file or pipe return empty result.
For example
/usr/ucb/ps -e 7933 # result "bla bla bla bla"
/usr/ucb/ps -e 7933 > a.out; more a.out # result empty

Thanks in advance,

Fredy
  #2 (permalink)  
Old 11-08-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,959
there are some d-trace scripts doing something like this... i think its called "execsnoop"

http://www.sun.com/bigadmin/jsp/desc...noop__snoop_ne

hth,
DN2
  #3 (permalink)  
Old 11-08-2006
fredy fredy is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 14
Going to check it...
Thanks
  #4 (permalink)  
Old 11-09-2006
fredy fredy is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 14
It seems that i don't have privilegesto run dterm
Is root privileges required?
Is there a way to get it without root privileges?

Thanks in advance,

Fredy
  #5 (permalink)  
Old 11-09-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,959
for all dtrace scripts root permission is required.
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 12:31 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