Full command line sun 5.10


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Full command line sun 5.10
# 1  
Old 11-08-2006
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  
Old 11-08-2006
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  
Old 11-08-2006
Going to check it...
Thanks
# 4  
Old 11-09-2006
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  
Old 11-09-2006
for all dtrace scripts root permission is required.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Full Color Command Line Menus

Hi all, Did a couple of Google searchs, a couple of searchs on the site here and didn't find an answer... But, maybe I'm not searching for the right phrases. My question; what creates the full color menus on the command line in unix? I'm looking for something that would replicate the... (3 Replies)
Discussion started by: jtollefson
3 Replies

2. Shell Programming and Scripting

grep grab 19 letters from now or a full line

Hi, I have a file like this >hg19_chr1_123_456_+ asndbansbdahsjdbfsjhfghjdsghjdghjdjhdghjjdkhfsdkjfhdsjkdkjghkjdhgfjkhjfkf hasjgdhjsgfhjdsgfdsgfjhdgjhdjhdhjdfhjdfjgfdfbdghjbfjksdhfjsfdghjgdhjgfdjhgd jhgdfj >hg19_chr1_123_456_-... (5 Replies)
Discussion started by: jacobs.smith
5 Replies

3. Shell Programming and Scripting

Read full line from file

hello all I'm writing a bash script and I need to read data from a file line by line The number of words of each line is not known and I want to check if anywhere in the line exists the substring www..That substring is a string by itself or a substring of other strings.So what I tried so far... (4 Replies)
Discussion started by: vlm
4 Replies

4. Shell Programming and Scripting

SSH full shell script in 1 line.

I'd like to ssh a piece of shell script code into a single ssh command. As you all know, you could ssh something like this: ssh user@host "ls -la" and receive the output of that command being run on that machine. So, let's say I scripted something on the fly via command line like this: ... (6 Replies)
Discussion started by: mrwatkin
6 Replies

5. HP-UX

pgrep doesn't perform full command line pattern matching

Hi! I need to get PID of some particular process and I wonder if I can use pgrep tool for this purpose. The problem is that pgrep doesn't perform pattern matching on the whole command line, even if I use -f key. Parsing output of ps command is not quite convenient... Also deamon, which PID I need... (2 Replies)
Discussion started by: Sapfeer
2 Replies

6. Shell Programming and Scripting

bash: read file line by line (lines have '\0') - not full line has read???

I am using the while-loop to read a file. The file has lines with null-terminated strings (words, actually.) What I have by that reading - just a first word up to '\0'! I need to have whole string up to 'new line' - (LF, 10#10, 16#A) What I am doing wrong? #make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies

7. Solaris

file system full in Sun Solaris 9 sparc

I am trying to install the JDK 1.6 on Solaris9 Sparc machine but after downloaded .tar file from Sun website and when I am trying to untar that, I an getting the following error- zcat jdk-6u7-solaris-sparc.tar.Z | tar -xf - Sep 2 18:42:36 mgsun ufs: NOTICE: alloc: /: file system full ... (11 Replies)
Discussion started by: smartgupta
11 Replies

8. AIX

Getting the process full command line

Hi, I am running java process that has a long command line. Is there a way to get the full command line? By running ps -ef has returns around 2000 chars By running ps eww returns around 2020 chars I am running on AIX 5.3 Thanks, Fredy (0 Replies)
Discussion started by: fredy
0 Replies

9. UNIX for Dummies Questions & Answers

display full unix path as part of the command line

Hi all, Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am? thanks Ocelot (3 Replies)
Discussion started by: ocelot
3 Replies
Login or Register to Ask a Question