[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] Checking if a binary file is compiled for condor



Dear All,

I would like to write a C/C++ program to verify if a given executable
has been compiled with condor_compile or not. In the command line, I
know that something like this:

strings foo_condor.x | grep -m 1 condor_exec.exe | wc -l

works, returning one (or zero) if the string condor_exec.exe is
defined (or not) inside the file foo_condor.x. Is there anyway of
detecting this inside C? For instance, how does condor check for this?
Thanks!

Bruno
-- 
*******************************************
Bruno Miguel Tavares Goncalves, MS
PhD Candidate
Emory University
Department of Physics
Office No. N117-C
400 Dowman Drive
Atlanta, Georgia 30322
Homepage: www.bgoncalves.com
Email: bgoncalves@xxxxxxxxx
Phone: (404) 712-2441
Fax:   (404) 727-0873
*******************************************