I think you need to look at Linux socket programming. This page explains how to do this with C++ for a PRG system. It's not an apples-to-apples example, but it's conceptually the same.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
The long of the short of it is that I think you need to open a socket to the Linux server and then execute the script, capture the data, parse the data and then let your application take action on it.
Dig Deeper on Introduction to Linux system administration
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.