Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Terminal command script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="weasel360" data-source="post: 1436900" data-attributes="member: 267324"><p>Assume I am a complete idiot (mostly true where scripting on mac is concerned). I like the automator approach, but it doesn't seem to like the 'boot' command.</p><p></p><p>I have opened automator with a 'do shell script' window. Shell is set to /bin/bash and pass input is set to 'to stdin'</p><p></p><p>In my command/script entry window I have:</p><p></p><p>cd /Users/James/Desktop/Server</p><p>java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui</p><p>say "server booted"</p><p></p><p>The command has to be run from the directory where the server files are contained, hence the cd command. When tested or run outside automator it seems to do nothing. When the test application is stopped inside automator the say command triggers.</p><p></p><p>**Edit**</p><p>After rebooting (which closed java) the automator script worked fantastically. Thanks for the help</p></blockquote><p></p>
[QUOTE="weasel360, post: 1436900, member: 267324"] Assume I am a complete idiot (mostly true where scripting on mac is concerned). I like the automator approach, but it doesn't seem to like the 'boot' command. I have opened automator with a 'do shell script' window. Shell is set to /bin/bash and pass input is set to 'to stdin' In my command/script entry window I have: cd /Users/James/Desktop/Server java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui say "server booted" The command has to be run from the directory where the server files are contained, hence the cd command. When tested or run outside automator it seems to do nothing. When the test application is stopped inside automator the say command triggers. **Edit** After rebooting (which closed java) the automator script worked fantastically. Thanks for the help [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Terminal command script
Top