Ron Posted July 31, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 07/13/12 Last Seen: August 26, 2013 Share Posted July 31, 2012 -> How can I setup nohup? -> Is it possible to re-open logs after you exit putty? -> My map server crashed a few days ago.. the problem doesnt seem to be happening again, but I want to know why it happened.. How can I know how? Thanks! Quote Link to comment Share on other sites More sharing options...
Asura Posted July 31, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 707 Reputation: 168 Joined: 01/26/12 Last Seen: February 7, 2014 Share Posted July 31, 2012 Hi Ron, You can simply run nohup to log the process, and then just exit putty. nohup ./map-server_sql > map-server.log& nohup ./char-server_sql > char-server.log& nohup ./login-server_sql > login-server.log After running that code, you may find 3 files inside the directory you're running the map/char/login servers from and their respective run logs. Quote Link to comment Share on other sites More sharing options...
Ron Posted July 31, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 07/13/12 Last Seen: August 26, 2013 Author Share Posted July 31, 2012 Now would this make me able to relog to putty and see logs? Or will this constantly update a .txt file full of logs? Would this be more beneficial? Or should I just go with this screen -- guide http://www.eathena.ws/board/lofiversion/index.php/t261500.html Quote Link to comment Share on other sites More sharing options...
Asura Posted July 31, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 707 Reputation: 168 Joined: 01/26/12 Last Seen: February 7, 2014 Share Posted July 31, 2012 Hi Ron, I'm not going to read over that long guide. The method that I've presented you with in my previous post logs that single session of while the process is still running. So you can read the *.log files even when the process is on/off, doesn't matter. If you want a fresh *.log when you're re-newing your processes, then simply remove the *.log files before starting them up again. rm -rf *.log Quote Link to comment Share on other sites More sharing options...
Question
Ron
-> How can I setup nohup?
-> Is it possible to re-open logs after you exit putty?
-> My map server crashed a few days ago.. the problem doesnt seem to be happening again, but I want to know why it happened.. How can I know how?
Thanks!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.