Jump to content

Recommended Posts

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock