L2j, Auto Server Restart
November 24, 2008
This is for Linux and only Linux and will work on more distros (I use Debian Stable).
- First you enable telnet on gameserver. Set password, post etc.
- You create a file with any name, lets say here: rr_telnet.sh
- Write in this file (or copy-paste):
(echo “password”; sleep 3; echo “shutdown 600″; sleep 3; echo “exit”) | telnet 127.0.0.1 12345 - Save the file.
- Type: crontab -e
- In our example, I restart server every certain days. So I set the script to be executed every day at 23:50
50 23 * * * /path/to/rr_telnet.sh - Now, every day at 23:50, this script will be executed and shutdown will start with 10 minutes countdown.
Filed under: Linux |

Hello, Can you explain what this command exactly does?