[Solved] Execute a command line program in Max

Laurent's icon

Dear all,

Is there a way to execute a command line function in Max? It seems a basic thing to do and yet, I have not found how to do it... I know there was a shell object but it ran only on OSX I believe... I am looking for a solution in Windows...

Thanks!

Laurent

kcoul's icon

This may still work but you will probably need a very old version of the Java runtime to get it to work... http://personal.computer.free.fr/new/maxmsp/DOShack.rar

I think I tested not too long ago and it may have been Java 6 JRE that was needed..

Laurent's icon

Thank you very much, I will try that!

Dirk's icon

Another flexible, lightweight option would be to use a scripting language like Python, Node.js, etc. with a dozen line script to listen for inbound OSC requests from Max and run your shell command (quick example). You could also use Windows PowerShell if you don't want to install one of the free scripting languages.

Spa's icon

I use this 2017 version of SHELL for windows 10 x64.
it works well...
https://cycling74.com/forums/shell-2013

Laurent's icon

That's perfect! I thought the Shell object did not work anymore, but this version works great, problem solved! Thank you!