Full command line sun 5.10 | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


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.

Full command line sun 5.10

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-08-2006
fredy fredy is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 31 December 2006, 1:29 AM EST
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 11-08-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 22 September 2014, 2:05 AM EDT
Location: Berlin, Germany
Posts: 5,400
Thanks: 54
Thanked 230 Times in 223 Posts
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
Sponsored Links
    #3  
Old 11-08-2006
fredy fredy is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 31 December 2006, 1:29 AM EST
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Going to check it...
Thanks
    #4  
Old 11-09-2006
fredy fredy is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 31 December 2006, 1:29 AM EST
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #5  
Old 11-09-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 22 September 2014, 2:05 AM EDT
Location: Berlin, Germany
Posts: 5,400
Thanks: 54
Thanked 230 Times in 223 Posts
for all dtrace scripts root permission is required.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH full shell script in 1 line. mrwatkin Shell Programming and Scripting 6 12-20-2011 08:32 AM
pgrep doesn't perform full command line pattern matching Sapfeer HP-UX 2 06-30-2010 02:02 PM
bash: read file line by line (lines have '\0') - not full line has read??? alex_5161 Shell Programming and Scripting 6 04-14-2010 04:58 AM
Getting the process full command line fredy AIX 0 12-21-2006 02: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



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