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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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