Shell Command - exec athena-start from sh file outside of emulator directory

CaioVictor

New member
Messages
7
Points
0
Hello all ^^'

Well, I am creating a SH file that will run the athena-start and the this SH file will be located in the parent directory of emulator!

Emulator:/home/emulator/athena-startSH File:/home/file.sh 

And the script line responsible for executing the server-athena:

#!/bin/shPATH=./:$PATHEMULATOR="/home/emulator/"exec ${EMULATOR}athena-start stop

However, when the code run athena-start it returns that files(login/char/map-server) do not exist.

How can i fix it?

I appreciate any help intention!

Att,

CaioVictor.

 
Last edited by a moderator:
exec ${EMULATOR}athena-start << this will run the athena-start script but the working directory will still be the same and athena-start looks for the server binaries in the working directory i.e. /home

what you should be doing instead is.

cd $EMULATOR

exec athena-start stop

or alternatively add $EMULATOR to the $PATH variable instead of ./

 
Back
Top