Occasionally, you might want to print out the process hierarchy for an application. This can be done using the ptree command. This command can print out the parent and child processes. Here’s an example of its use using Netscape’s PID.
# ptree -a 532
1 /etc/init -
274 /usr/dt/bin/dtlogin -daemon
292 /usr/dt/bin/dtlogin -daemon
311 /bin/ksh /usr/dt/bin/Xsession
356 /usr/dt/bin/sdt_shell -c unset DT; DISPLAY=:0;
359 -sh -c unset DT; DISPLAY=:0; /usr/dt/bin/dtse
372 /usr/dt/bin/dtsession
379 dtwm
404 /usr/dt/bin/dtexec -open 0 -ttprocid 2.16H6ao 01 371 1289
405 /usr/dt/bin/dtterm
407 /sbin/sh
531 ./netscape
532 ./.netscape.bin -xrm *appDir: /usr/dt/appconfig/n
534 (dns helper)
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment