Skip to content
Advertisement

Tag: srand

Expect script on linux

I would like to make a expect script which can answer the question by using srand functuon. For example, I will use netcat to connect to the server, and I will get a question from server like “please enter 0 or 1”; then I hope my script can answer the question automatically by using the code like above. If you

Advertisement