I don't know if this is exactly a security question but its about routers. My problem is that i am using expect script to back up routing configurations. When i run the script the backup works fine until i t hits the last command quit or exit. For some reason it is impossible to terminate connection. I googled for this a lot and have not found a solution especially since some scripts will run and some other will not which is weird.