calling command line on OSX?
in
Programming Questions
•
3 years ago
Hi,
I am wondering if I can access the command line through Processing on OSX so that I can call various UNIX utilities that I have installed - passing params, etc. and then either having the utility write to a file or get back the result in Processing through stdout.
For example - I use a conversion utility called pstoedit and in the OSX Terminal would invoke it like this:
pstoedit -f plot-hpgl isCircleSqPlain.svg isCircleSqOut2.hpgl
The .svg file is converted to hpgl and the result is written to a .hpgl file.
Any tips on how to do this in Processing?
tx!
--skinny
I am wondering if I can access the command line through Processing on OSX so that I can call various UNIX utilities that I have installed - passing params, etc. and then either having the utility write to a file or get back the result in Processing through stdout.
For example - I use a conversion utility called pstoedit and in the OSX Terminal would invoke it like this:
pstoedit -f plot-hpgl isCircleSqPlain.svg isCircleSqOut2.hpgl
The .svg file is converted to hpgl and the result is written to a .hpgl file.
Any tips on how to do this in Processing?
tx!
--skinny
1