1752707 Members
5425 Online
108789 Solutions
New Discussion юеВ

command querry

 
kumardev
Occasional Advisor

command querry

Hi,
I am not a newbie to hp-ux but just want to know that after we have run a specific command how does the commad internally works to get us the desired output? like what system call it internall calls, how may process it spawns and what is the command execution flow? etc

Thx for the answers.

Regards
Dev
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: command querry

Hi:

As a general answer, it would be helpful to run 'tusc' against an actual command (process):

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.9/

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: command querry

You want us to tell you all the possible system calls invoked by all the possible commands? That could be a little tough. I would suggest that you might start by a careful read of the man pages for the particular command that you're interested in.


Pete

Pete
Mel Burslan
Honored Contributor

Re: command querry

This question sounded like a mid-term question for "systems programming 401" class to me. If you are really curious about how HP-UX innards operate in the system calls level, I'd suggest you buy the HP-UX 11i Internals book and read it. I am sure it will put you sleep faster than an Ambien CR pill, but here it is:

http://www.amazon.com/HP-UX-Internals-Hewlett-Packard-Professional-Books/dp/product-description/0130328618
________________________________
UNIX because I majored in cryptology...
Frank de Vries
Respected Contributor

Re: command querry

Tusc is already mentioned,
really good tool.

But indeed it is usefulness when you can compare a good and bad process increases,
because it is easier to compare the differences.

Another good one is 'lsof'
You can get lsof from the HP porting and archive centre at http://hpux.cae.wisc.edu/

have fun ...
Look before you leap
Ganesan R
Honored Contributor

Re: command querry

Hi,

tusc is the tool which trace unix system calls.

Read the man page here to know more about it.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.9/man.html
Best wishes,

Ganesh.