Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Automator - Run Shell Script Can't Find Mono

I am trying to use automator to run a shell script using mono to launch an app.


mono /Applications/MYAPP.app/Contents/MacOS/runme.exe


The above works fine in the terminal, but inputing it through automator throws up the error that mono is not a recognised command and therefore fails to run as expected.


Any suggestions?

MacBook Pro (13-inch Early 2011), OS X Mountain Lion (10.8.2)

Posted on Oct 5, 2015 3:45 PM

Reply
Question marked as Best reply

Posted on Mar 6, 2018 2:21 PM

I think it is best practise to use:


cd /Users/yourhomefolder/yourworkfolder

MONO=/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono

nohup $MONO ./yourbinary.exe >~/yourbinary.out.log 2>~/yourbinary.err.log &

exit 0


3 replies

Automator - Run Shell Script Can't Find Mono

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.