Jump to content
  • 0

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


CaioVictor

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   0
  • Joined:  05/26/12
  • Last Seen:  

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-start

SH File:
/home/file.sh

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

#!/bin/sh

PATH=./:$PATH

EMULATOR="/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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi CaioVictor,

 

Why not just...

 

#!/bin/sh
cd /home/emulator
./athena-start stop
Link to comment
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.   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...