- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Understanding tusc output
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 10:02 AM
тАО07-20-2006 10:02 AM
$ tusc sqr
tusc: sqr: Permission denied
exit(1) .......................... WIFEXITED(1)
$ which sqr
/software/psoft/hr891/bin/sqr/ORA/bin/sqr
$ tusc -o t.t `which sqr` # Suppress tusc output
SQR for PeopleSoft V8.46
SQR for PeopleSoft [program] ......
$ sqr
SQR for PeopleSoft V8.46
SQR for PeopleSoft [program] ....
Any ideas? What keeps tusc from executing that program directly?
Victoria
Solved! Go to Solution.
- Tags:
- tusc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 05:29 PM
тАО07-20-2006 05:29 PM
Re: Understanding tusc output
What is missing here is a proper understading the tusc utiliy.It is a utlity to trace the system calls invoked by processes.When you want to see the system calls invoked by a running process provide the pid as an argument to tusc,when you want to trace the system processes invoked by a progrem since its execution,you need to provide the command name as a argument along with tusc.When you specify a command as an argument to tusc it start the command and start tracing that command.
have a look at
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.8/man.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 02:02 AM
тАО07-21-2006 02:02 AM
Re: Understanding tusc output
"When you specify a command as an argument to tusc it start the command and start tracing that command."
Right. I want to trace the system calls from the sqr program, so I started it with tusc. I want to understand what environment tusc is using, since it fails unless I call the command (sqr) very explicitly (`which sqr`).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 01:32 AM
тАО07-25-2006 01:32 AM
Re: Understanding tusc output
Can't quite figure out exactly why this would happen, though.
Also, do you get the same behaviour with
$ tusc `which sqr`
?
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 02:18 AM
тАО07-25-2006 02:18 AM
Re: Understanding tusc output
I guess it's something to do with the pathing in the execve call in the tusc program:
execve("./sqr",...) ... ERR#13 EACCES
The above ./sqr is a directory. If I move it, then I get
execve("/software/psoft/hr891/bin/sqr",
[...] ERR#13 EACCES
And if I move THAT directory, then I get
tusc: sqr: No such file or directory
even though `which sqr` is valid.
Source code is unavailable for tusc so I can't see exactly what it is doing. I am kicking around writing a test program just to kick off an exec* call.
Victoria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 02:43 AM
тАО07-25-2006 02:43 AM
Re: Understanding tusc output
What does 'whence sqr' show? That uses the shell built-in, rather than the standalone program 'which'.
(And only 2 points when I suggested checking 'tusc `which sqr`'? :-) )
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 05:45 AM
тАО07-25-2006 05:45 AM
Re: Understanding tusc output
'whence sqr' shows the same output as 'which sqr'
tusc seems to be parsing the PATH and trying to execute the first sqr it finds. If I mkdir sqr in some random directory that is pathed, I get the same behaviour:
execve("/opt/cobol/bin/sqr", ...) ERR#13 EACCES
>(And only 2 points when I suggested checking 'tusc `which sqr`'? :-) )
Yeah. I did that originally, I just included the one with -o t.t so I wouldn't have to say "output excluded" :-}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 05:56 AM
тАО07-25-2006 05:56 AM
Re: Understanding tusc output
# mkdir /opt/hparray/bin/mozilla
$ which mozilla
/opt/mozilla/mozilla
$ tusc -af -o t.t mozilla
tusc: mozilla: Permission denied
$ more t.t
[...]
execve("/opt/hparray/bin/mozilla"...) ERR#13 EACCES
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 06:02 AM
тАО07-25-2006 06:02 AM
Re: Understanding tusc output
I've had a quick play, and I see the same behaviour as you, if there is a directory of the same name as the executable ahead of the binary on the $PATH list, and the directory has the 'execute' bit set. So, basically, tusc is just going along the PATH list looking for a match for the name given that has the execute bit set, and not checking if it is a directory.
I'll ask the author if this is known or deliberate behaviour.
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 05:06 PM
тАО07-25-2006 05:06 PM
SolutionYes, it is a bug in tusc, and you probably deserve a prize for spotting it; no-one has noticed this behaviour before. :-)
It will be fixed in the next release, which it is planned will come out around the same time as 11.31.
How serious is the problem for you?
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 02:36 AM
тАО07-26-2006 02:36 AM
Re: Understanding tusc output
Since I know how to get around the problem and will share that knowledge with the folks here who might use the program, it's not an issue.
Might you ask the author if it is a call to an exec* function that causes the problem? I am facing a similar problem with another program (the truth comes out!), and it has got me befuddled. We could take this to email if that would be better.
I really really appreciate your tracking this down for me.
Victoria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 08:44 PM
тАО07-26-2006 08:44 PM
Re: Understanding tusc output
- Tags:
- exec
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 01:55 AM
тАО07-27-2006 01:55 AM
Re: Understanding tusc output
Victoria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 02:02 AM
тАО07-27-2006 02:02 AM
Re: Understanding tusc output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 02:08 AM
тАО07-27-2006 02:08 AM
Re: Understanding tusc output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 02:14 AM
тАО07-27-2006 02:14 AM