Tales Posted November 13, 2014 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Share Posted November 13, 2014 (edited) I mean... have some place thats server create a file.log of this issues?@editI found this ./login-server_sql >> loginserver.log 2>&1 &and this./athena-start start > log.txtWhich of these will continue to save the server's log? Edited November 13, 2014 by Tales Quote Link to comment Share on other sites More sharing options...
Winz Posted November 15, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 15, 2014 I mean... have some place thats server create a file.log of this issues? @edit I found this ./login-server_sql >> loginserver.log 2>&1 & and this ./athena-start start > log.txt Which of these will continue to save the server's log? yeah, both linux commands will put the logs that are printed on the screen to the loginserver.log or log.txt. something >> log.txt means run something and output them to log.txt but, I'm not sure what will happen when you close your PuTTy. I guess something >> log.txt 2>&1 & will keep it running when putty is closed. I used to use it as well. ./athena-start start 2>&1 & this will prob. help you: http://www.eathena.ws/board/index.php?showtopic=243468 Quote Link to comment Share on other sites More sharing options...
Winz Posted November 13, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 13, 2014 if i'm not mistaken,./login-server_sql >> loginserver.log 2>&1 &will open login server and put it in background, while keeping the log of it, while ./athena-start start > log.txt prints the output of the screen on both file and screen. I usually use ./athena-start start > log.txt 2>&1 & and as everything that's printed on the screen will be saved to the log file, I believe both way will do it (print the wrong password entered) Quote Link to comment Share on other sites More sharing options...
Tales Posted November 13, 2014 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Author Share Posted November 13, 2014 Master Winz, in the case 1, "./login-server_sql >> loginserver.log 2>&1 " will continue even if I close the connection? If yes, it can incress the lag on server? Quote Link to comment Share on other sites More sharing options...
Winz Posted November 14, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 14, 2014 what do you mean by "closing the connection"? you mean disconnecting every single client? if so, then the server will do its usual behavior, to go standby and listens for incoming connection (and will then reply the appropriate thing). Unless if it has gone standby for too long, it will keep pinging the SQL server every 1 second, saying "To keep connection alive", which this phase is known to be the server is not working well anymore (restart it) well, this just happen while I was still using rA SVN. I don't know what about now.. one more thing, don't call me master. just don't. 1 Quote Link to comment Share on other sites More sharing options...
Tales Posted November 15, 2014 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Author Share Posted November 15, 2014 @Winz Sorry *.*So... I use putty to connect to my server on a webhost. I want to use someway to salve all that appers on putty in a txt file to see again other time. I only it because i dont like to restart my server every time that i want to see the server running on putty.Its possible? Sorry for my bad-s-english. Quote Link to comment Share on other sites More sharing options...
Question
Tales
I mean... have some place thats server create a file.log of this issues?
Edited by Tales@edit
I found this
./login-server_sql >> loginserver.log 2>&1 &
and this
./athena-start start > log.txt
Which of these will continue to save the server's log?
Link to comment
Share on other sites
5 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.