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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now