A
Adrian
Hi,
I'm shelling out to a unreliable 3rd party utility that
is supposed to spit some stuff out to STDOUT and exit.
It always spits out the right data but sometimes it just
doesn't exit properly and the system() call is left
hanging there..
is there any easy way (through threads perhaps?) of
giving the system() call say 10 seconds to do it's thing,
capturing the STDOUT as usual, but then killing it off if
it hasn't exited?
Thanks,
Adrian.
I'm shelling out to a unreliable 3rd party utility that
is supposed to spit some stuff out to STDOUT and exit.
It always spits out the right data but sometimes it just
doesn't exit properly and the system() call is left
hanging there..
is there any easy way (through threads perhaps?) of
giving the system() call say 10 seconds to do it's thing,
capturing the STDOUT as usual, but then killing it off if
it hasn't exited?
Thanks,
Adrian.