01-07-2004
ps -l pid will show show the status of a process for you besides other things
you can see man page what are the states (R for running and so on )
Regards
JK
10 More Discussions You Might Find Interesting
1. Programming
One of my program which uses posix message queues was hanging in mq_open() system call, and after some time, it threw an error "Interrupted system call". I couldnt even unlink that message queue using mq_unlink(), as I have to use mq_open() prior to mq_unlink().
I use SunOS 5.7 Generic_106541-22... (0 Replies)
Discussion started by: Deepa
0 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I just tried to run this command: /usr/lib/sendmail -d0.1 -bt < /dev/null | grep -i version
Its doing what I want: writing out the sendmail version.
But on some machines it writing the version and then exit to the prompt but on others its writing the version but then hangs, I need to... (0 Replies)
Discussion started by: jOOc
0 Replies
3. Solaris
hi all,
i had a program which created a socket on port 7113, but for some reason the program was hunbg and I had to Ctrl+c it. I ran the program for a couple of times and now when I do a netstat -a I see that these sockets are lingering and that might be the reason why my program is not... (1 Reply)
Discussion started by: Naanu
1 Replies
4. UNIX for Dummies Questions & Answers
Ok, this question my be different. I can ping our unix box, but when we I to access the webpage I cant. To access the webpage I type http://ipaddress:some port. How do I check if a port is hanging and how would I un hang it. Sorry if question doesnt make sense. (1 Reply)
Discussion started by: NycUnxer
1 Replies
5. UNIX for Advanced & Expert Users
Hi,
This weekend i left a perl script running , I was running it in a remote machine. The machine seems to have been rebooted during the weekend. When i got back on monday the entire directory containing the script was wiped out. The process had been aborted. Nobody has access to the directory... (2 Replies)
Discussion started by: aboxilica
2 Replies
6. Linux
I want to create a script to simulate a process that hangs to test a java application. My java app executes a system command, which can also be executing scripts, etc. Any ideas on such a script?
The java code is:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("sh... (4 Replies)
Discussion started by: brendan76
4 Replies
7. Shell Programming and Scripting
Hello,
I have the following shell script and when i execute, it keeps hanging and nothing happens
Please let me know.
Requirement is to read data from file and pass it to the sql and create files as shown.
code
/********
#!/bin/sh
while read user.dat
do
echo "user = $1 email =... (1 Reply)
Discussion started by: rakeshsr12
1 Replies
8. UNIX for Dummies Questions & Answers
Hi! I have written a program three threads will be created to execute three different Sybase SQLs. so three thread will call a method runQuery.
In run query again we create child process to execute the actuall SQL by connecting to the SQL. When I run the process first three threading working fine.... (0 Replies)
Discussion started by: jramesh1
0 Replies
9. Shell Programming and Scripting
Hey folks. Long time lurker, first time poster. I'm a bit of a newbie at "coding" (obviously, scripting is a teensy bit different than coding) and I've run into a problem that I just can't seem to get around.
I'm going through a list of servers to check their name, IP, reverse-NSLOOKUP name and... (2 Replies)
Discussion started by: Bearwhale
2 Replies
10. Shell Programming and Scripting
/bin/sed -n '$q;5633653,0 p' lfile
lfile is a log file that is being updated several times a second.
so, the command above figures out the line number it wants in the lfile and then proceeds to output all lines from that line number to the end of the file.
the problem is, the end of the... (2 Replies)
Discussion started by: SkySmart
2 Replies
LEARN ABOUT OPENSOLARIS
xtsolgetpropattributes
XTSOLgetPropAttributes(3XTSOL) Trusted Extensions to X Windows Library Functions XTSOLgetPropAttributes(3XTSOL)
NAME
XTSOLgetPropAttributes - get the label attributes associated with a property hanging on a window
SYNOPSIS
cc [flag...] file... -lX11 -lXtsol [library...]
#include <X11/extensions/Xtsol.h>
Status XTSOLgetPropAttributes(display, window, property, propattrp);
Display *display;
Window window;
Atom property;
XTSOLPropAttributes *propattrp;
PARAMETERS
display Specifies a pointer to the Display structure; returned from XOpenDisplay().
window Specifies the ID of a window system object.
property Specifies the property atom.
propattrp Client must provide a pointer to XTSOLPropAttributes.
DESCRIPTION
The client requires the PRIV_WIN_DAC_READ and PRIV_WIN_MAC_READ privileges. The XTSOLgetPropAttributes() function retrieves the label
attributes that are associated with a property hanging out of a window in a single call. The attributes include UID and sensitivity label.
RETURN VALUES
None
ERRORS
BadAccess Lack of privilege
BadWindow Not a valid window
BadAtom Not a valid atom
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+---------------------------+-------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------------------+-------------------------------+
|Interface Stability | Committed |
+---------------------------+-------------------------------+
|MT-Level | MT-Unsafe |
+---------------------------+-------------------------------+
SEE ALSO
libXtsol(3LIB), XTSOLgetClientAttributes(3XTSOL), XTSOLgetResAttributes(3XTSOL), attributes(5)
Setting Window Polyinstantiation Information in Solaris Trusted Extensions Developer's Guide
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 20 Jul 2007 XTSOLgetPropAttributes(3XTSOL)