Get detect and command strings from .ini file
Close std output pipe at process termination