Hello All , i want to make one script which will automatic telnet the system . I have to access from my system(Windows Xp) to my server(Linux)
spawn telnet <machine ip>
expect "login:"
send "<username>\n"
expect "Password:"
send "<password>\n"
Is the above script is correct? 1) If yes means, how can i access this script from my machine(WindowsXp)? 2) If yes means, i have to install expect package?