Workaround if popen() is not available
Contents
If popen is not available then this technique might be useful. This shows an example of piping output from a command into a temporary text file called ‘blah.txt’ and then reading it afterwards:
Continue: Get current working directory