I'm trying to run a terminal command (specifically, launching a Java application from command line) using bash on OS X, and distributing this command to users. The script is fine and works flawlessly, however!
If I were to export this as .command or .sh, each user would have to open terminal and chmod +x it to run it. This is completely counterproductive for what I'm trying to do (a one-click solution to hosting a server for a game).
I need a way to launch this bash command without permissions changing on the part of the user, and it MUST show terminal output in real time. This means not logging output to a text file- needs to show up in a terminal window.
I've tried making an application with automator to launch a shell script, which worked fine as far as perms go but doesn't show output.
I tried making a more workflow style app with automator that opened Terminal and then input the text (both inputting it as raw text and inputting it as a shell script). Both of these open a Terminal window but still don't show output.
The only solution I've got, and it's kinda janky, is to set the perms myself, zip the file, and send it that way. While zipped, the file retains its permissions settings. This is still one step more than I want to have as this is something I'm trying to send to paying users who might not be tech savvy at all.