Thank you very much. You are right. It works. One more thing to finish this topic. print command prints something to screen. What i want is to send a command to the router. So which command is used for this ? For example i want to send "show version" command to router.