Keep Alive 신호를 인식하지 못하는 서버에서 주기적으로 엔터 키를 보내기 위해 스크립트를 사용하는 방법입니다.
RESOLUTION
아래 For servers that are unable to recognize Keep Alive signals, you can use script to periodically send a string to keep the server alive. The instructions below will show you how to send the "enter" key which is utilized by many users in these types of situations.
INSTRUCTIONS
...
Below, we've used Xshell Script (VB Script)를 사용하여 일정 시간 마다 특정 문자열을 보낼 수 있습니다.
...
script) to send a user defined string at a user defined interval.
Create the following and save it as a file.
Code Block language vb theme Eclipse Sub Main 'xsh.Screen.Synchronous = true Dim lab lab = 0 Do While true xsh.Session.sleep 3000 if xsh.Session.Connected = 0 Then Exit Do else ' xsh.Screen.Send lab xsh.Screen.Send vbCr end if 'lab = lab + 1 Wend Loop 'xsh.Screen.Synchronous = false End Sub
- 원하는 장비에 접속합니다Connect to a desired session.
- Go to 'Tools -> Script -> Run'을 클릭하여 위 1의 파일을 지정한 후 실행합니다 and select the created file and run it.