Jump to content
  • 0
Sign in to follow this  
CaioVictor

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

Question

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.

Edited by CaioVictor

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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 ./

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.