| [ CnUnix ] in KIDS 글 쓴 이(By): miso74 () 날 짜 (Date): 2003년 11월 12일 수요일 오전 08시 54분 58초 제 목(Title): Re: [질문] expect script send -- "show config\r" expect {\nend\r} {} \ timeout {puts "timed out waiting for end";exit} expect {*#} {} \ timeout {puts "timed out waiting for prompt";exit} 그냥 expect {*end*#} 하면 send나 또다른 end (ex. banner)등을 잡을수가 있어서 쓰질 못하고 있읍니다. --- reg. exp. 를 쓰시면 어떨까요? expect -re "^end" 같은 걸로요. |