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?

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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