LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2012, 10:27 AM   #1
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Rep: Reputation: 16
A test if executable is exec'd? (assume no internal logging)


Hi

Trying to determine impact of installing a specific application using LDAP authenticated account. (Security is mandating it).

One of the "progs" as part of an app suite includes a "check password" binary that is installed as root and authenticates against the OS to return a T/F to the calling app.

Need to know how many times a second this is called and get a measure of how fast it can turn around a request. Assume not wanting to write a wrapper and no internal logging is available.

Is it possible to 'monitor' requests to an application (in this case the check password prog mentioned) and determine frequency and turnaround of a request?

Many thanks

Kevin
 
Old 10-02-2012, 12:52 PM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I would use a wrapper and alias it ... why don't you want a wrapper?

If the binary is called using "sudo" (if your distribution even has that, you didn't specify it) you will get logging. But otherwise I'm not aware of any way that the OS or shell will record the number of calls - it's possible that some system logging utility could be installed that hooks into OS calls though.

But I am sure nothing will enable you to measure the execution time (turnaround time) unless you wrap the call with a call to time ... which would be very simple.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-mapping stdio for a fork'd/exec'd executable doesn't seem to behave orgcandman Programming 14 01-28-2011 08:24 PM
Exec format error. Binary file not executable. Fetch Bug? Dimitriy *BSD 2 04-21-2010 05:34 PM
Exec format error. binary file not executable. kaz2100 Linux - General 2 08-19-2006 06:26 PM
How to create a run-time executable from another exec + inputs? R00ts Linux - General 3 02-18-2006 05:52 PM
Logging program exec leckie Linux - Security 1 08-06-2004 09:45 AM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration