Access to system commands
BlitzMax Forums/BlitzMax Programming/Access to system commands
| ||
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 |
| ||
_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 ;-) |
| ||
i can't find any reference to _system in the docs, does any one know where they are? Cheers Charlie |
| ||
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. |