sess Posted July 9, 2008 Posted July 9, 2008 Having a slight problem with this script: #!/bin/sh PW_PATH=/home/server if [ ! -d $PW_PATH/logs ]; then mkdir $PW_PATH/logs fi echo "=== LOGSERVICE ===" cd $PW_PATH/logservice; ./logservice logservice.conf >$PW_PATH/logs/logservice.log & sleep 2 echo "=== DONE! ===" echo "" echo "=== UNIQUENAMED ===" cd $PW_PATH/uniquenamed; ./uniquenamed gamesys.conf >$PW_PATH/logs/uniquenamed.log & sleep 3 echo "=== DONE! ===" When ran, the errors I get are similar to this: === LOGSERVICE === ./start.sh: line 16: cd: /logservice: No such file or directory ./start.sh :line 16: /logs/logservice.log: No such file or directory Just change 'logservice:' and '/logs/logservice.log' for the different directories and files. The full path for files: /home/server/ The 'logservice' in the first error is actual an executable file. Any ideas why this error is happening? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.