Access to system commands

BlitzMax Forums/BlitzMax Programming/Access to system commands

jkrankie(Posted 2007) [#1]
Is it possible to use system command line stuff (like grep, lp etc.) from within blitzmax? if so, how? I'd like to be able to use some unix commands in a side project i'm doing on my mac.

Cheers
Charlie


Brucey(Posted 2007) [#2]
_system (or is it system_ ?) might be enough... it lets you run a command.

Also, there is the FreeProcess module, which might be better for you if you need to get stuff back from it. You can use it to have the command send its output into your app via the standard "pipes"... in, err, and quite probably out.

I'm sure someone can provide us with a small working example ;-)


jkrankie(Posted 2007) [#3]
i can't find any reference to _system in the docs, does any one know where they are?

Cheers
Charlie


FlameDuck(Posted 2007) [#4]
They aren't in the docs. They're in the bmk sourcecode. Like Brucey said, try FreeProcess. Probably not documented either, but used extensively by the IDE.