| 1. |
Solve : Issue with Telnet Server? |
|
Answer» I have a telnet server setup on WINDOWS 8 that i'd like to use to host a chat room and various text based games. I have all that already setup and when you login to the server it automatically loads the main Python script. The problem is that when users press ctrl + C they are able to "terminate the batch job" and ACCESS a regular command prompt. The cmd does not have admin privileges, however i still do not want users accessing it. CTRL +C is hard coded in the command shell. Each users systems command shell would have to be altered to disable it at their end. This is not likely going to happen.Not sure about Windows systems, but in Unix you can add a handler for the SIGINT signal (sent when CTRL+C is pressed) and override the DEFAULT behaviour. This is usually done in C - not sure how you'd accomplish it in Python. |
|