I'm making a simple script to start up my minecraft server manager in a screen session, wait for it to boot, then kill the actual server. That part works, but the change directory command keeps throwing an error:
Code:
: No such file or directoryt.sh: line 1: cd: /Users/xxxx/Documents/McMyAdmin
The directory is real, and the same cd command copied into a terminal window works just fine. Any ideas? For reference, I'm on OSX 10.6.
Code:
#!/bin/sh
# minecraft.sh
#
#
cd '/Users/xxxx/Documents/McMyAdmin'
screen -AmdS minecraft mono McMyAdmin.exe
sleep 75
screen -S minecraft -X stuff $'stop\n'