[OSX only?] how to fetch data from system_()?

BlitzMax Forums/BlitzMax Programming/[OSX only?] how to fetch data from system_()?

explosive(Posted 2008) [#1]
Hello everybody!

I'm trying to access information about the installed software via the OSX-Terminal. when executing the system_()-command (eg "lpoptions") the result is printed to the output-textarea of the MaxIDE.
I was told that this might be an OSX-only problem as noone experienced this before under Win or Linux. Now I had a look how to change the StdIOStream but can't really sort out how to programme it to get it into a variable or bank.

Can anyone help?

Thanks
Simon


plash(Posted 2008) [#2]
You'll probably have to use free process to execute the command, even then things are iffy.
Search around the forums for TProcess.