Operating System - HP-UX
1752808 Members
6683 Online
108789 Solutions
New Discussion юеВ

Re: truss command in HP-UX 11i

 
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

./tusc: PA-RISC1.1 shared executable dynamically linked -not stripped
Dennis Handly
Acclaimed Contributor

Re: truss command in HP-UX 11i

>./tusc: PA-RISC1.1

This shows it is a binary.
What is PID 7956?
ps -fp 7956

tusc -aef -w all -r all -o /tmp/truss.out -p 7956

Please move the -p with the options: -aefp

What does /home/tmp/tusc do? It should give help.
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

>./tusc: PA-RISC1.1

This shows it is a binary.
What is PID 7956?
ps -fp 7956

I am using PID 8076 as a sample now
PID 8076 is :
/opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java -Dengine

there is no help file found
app:/home/tmp# man tusc
No manual entry for tusc.

and same problem with the below command :
app:/home/tmp# tusc -aef -w all -r all -o /tmp/truss.out -aefp 8076
sh: tusc: not found.
app:/home/tmp#



Dennis Handly
Acclaimed Contributor

Re: truss command in HP-UX 11i

>there is no help file found

You need to put tusc.1 in the proper place, probably /usr/share/man/man1/.
Or you can format it directly with:
nroff -man tusc.1 | col -x | more -s

>same problem with the below command:
tusc -aef -w all -r all -o /tmp/truss.out -aefp 8076

Replace -aef at the beginning with -aefp and remove -aefp at the end. Also remove -w and -r, just to see what you get:
/home/tmp/tusc -aefp -o /tmp/tusc.out 8076

Also what happens if you invoke with no options: /home/tmp/tusc
Abid Iqbal
Regular Advisor

Re: truss command in HP-UX 11i

Hi ng
Here is a link you can download tusc 7.9
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.9/
1. Place this zip file in "/tmp/ng" folder
2. unzip the file "#gunzip filename"
3. it will unzip and place a .depot file on the same location.
4. #swinstall -s file.depot
5. Complete the installation process.
5. Find the path of tusc by "whereis tusc"
6. Change "#cd /usr/local/bin" and run the command using the same sysntax of command.