简体   繁体   中英

Displaying HTCondor status using PHP

I am currently trying to display the output of the HTCondor command "condor_q" in a browser as part of a front-end I am developing. I am working with PHP and have tried echo exec("condor_q"), echo shell_exec() and echo system() with nothing being displayed.

The front-end is running on a single machine using the web server Xampp on Ubuntu 16.04.

I would appreciate it if any has suggestion on how I can resolve this issue

Thanks

You could enable HTCondor SOAP Feature:

Add this to your config file (/etc/condor/config.d/condor_config.local )

ENABLE_SOAP = TRUE
ALLOW_SOAP = *
SCHEDD_ARGS = -p 8080
ENABLE_WEB_SERVER = TRUE
WEB_ROOT_DIR=/usr/share/condor/webservice/

Then generate the SOAP Php client stub ()


Another option is simply parser the condor_q command

% condor_q -submitter jdoe -format "%s" Owner -format " %s " Args -format "ProcId = %d\n" ProcId

Also be aware that the built-in SOAP API support in HTCondor is expected to go away in the v8.7 release series sometime later this year, as times and tastes have changed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM