01-22-2002
No this is from AIX. You should check your manuals. I dunno SCO
Regards
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Im having this problem ever since im Using Unix. Please help.Im using Linux Red Hat 7.0. 2.2.6. My Problem is. Whenever i close my unix before the system goes to Halt mode and stoping all md device, this Process shows me as fail. :
Saving Mixer settings modprobe: modprobe: can't locate module... (1 Reply)
Discussion started by: killerserv
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have this doubt....
When some program is running and if we press CTRL+Z...it is suspended...
what should we do to continue its execution
I know that KILL can be used to completely terminate the process....but is there any way to continue...
Thanks (3 Replies)
Discussion started by: proton
3 Replies
3. Programming
Hi,
i need to find the process name using the process id in C. This has to be done in HP, AIX, Solaris & Linux??
How can this be done? Is there any common solution to all platforms?
On linux i have heard that /proc/<pid>/cmdline can be used. Is there a structure available to read this?
... (3 Replies)
Discussion started by: molu
3 Replies
4. UNIX for Dummies Questions & Answers
Hi
does unix keep track of the processes or programs it ran. can i check when my program last ran on the system.
any suggestions are welocme.
-- logs made by the program it self are missing.
Regards
Debadatta (4 Replies)
Discussion started by: mishra.dd
4 Replies
5. Shell Programming and Scripting
What are some ways to tell if a given file is presently being used
by a process? How can you tell what sort of access the process has
to the file (read from, written to, filehandle held open, etc)?
Can more than one process access the file at the same time? (2 Replies)
Discussion started by: choco4202002
2 Replies
6. Shell Programming and Scripting
Hi,
We have UNIX menu.
when we exit the menu the processes are not getting log out.
please suggest me how to log out the process after exit from the UNIX Menu.
Regards,
laknar. (3 Replies)
Discussion started by: laknar
3 Replies
7. Shell Programming and Scripting
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies
8. Red Hat
Hi,
I'm running weblogic 11g on Linux platform. My requirement is to have weblogic instances running and it is controlled by Nodemanager. In the sense, when ever the weblogic instance goes down, Node manager should start it.
The set up requires to have weblogic running as user X, and... (2 Replies)
Discussion started by: aprasad
2 Replies
9. UNIX for Dummies Questions & Answers
Hi ,
i scheduled jobs in crontab with dependency. some child process id killed without manual intervention or script . please add you thoughts how process id killed automatically. (1 Reply)
Discussion started by: challamsomu
1 Replies
10. UNIX for Dummies Questions & Answers
I have to create a parent process that receives n arguments, arg1, arg2 ... argn. The parent creates n son processes. Each one of these will read a text file argi and will print the pair of lines from the file in reversed order.
Can anyone help me with this problem, please? (3 Replies)
Discussion started by: oana06
3 Replies
ptree(1) ptree(1)
NAME
ptree - print process trees
SYNOPSIS
/usr/bin/ptree [-a] [-c] [-z zone] [pid | user] ...
ptree prints the process trees containing the specified pids or users, with child processes indented from their respective parent pro-
cesses. An argument of all digits is taken to be a process-id, otherwise it is assumed to be a user login name. The default is all pro-
cesses.
The following options are supported:
-a All. Print all processes, including children of process 0.
-c Contracts. Print process contract memberships in addition to parent-child relationships. See process(4). This option
implies the -a option.
-z zone Zones. Print only processes in the specified zone. Each zone ID can be specified as either a zone name or a numerical zone
ID.
This option is only useful when executed in the global zone.
The following operands are supported:
pid Process-id or a list of process-ids. ptree also accepts /proc/nnn as a process-id, so the shell expansion /proc/* can be
used to specify all processes in the system.
user Username or list of usernames. Processes whose effective user IDs match those given are displayed.
Example 1: Using ptree
The following example prints the process tree (including children of process 0) for processes which match the command name ssh:
$ ptree -a `pgrep ssh`
1 /sbin/init
100909 /usr/lib/ssh/sshd
569150 /usr/lib/ssh/sshd
569157 /usr/lib/ssh/sshd
569159 -ksh
569171 bash
569173 /bin/ksh
569193 bash
The following exit values are returned:
0 Successful operation.
non-zero An error has occurred.
/proc/* process files
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface Stability |See below. |
+-----------------------------+-----------------------------+
The human readable output is Unstable. The options are Evolving.
gcore(1), ldd(1), pargs(1), pgrep(1), pkill(1), plimit(1), pmap(1), preap(1), proc(1), ps(1), ppgsz(1), pwd(1), rlogin(1), time(1),
truss(1), wait(1), fcntl(2), fstat(2), setuid(2), dlopen(3C), signal.h(3HEAD), core(4), proc(4), process(4), attributes(5), zones(5)
11 Oct 2005 ptree(1)