Advertisement
march_happy

Untitled

Nov 8th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. # Working
  2. expect <<'EOF'
  3. spawn cl
  4. expect "cl>"
  5. send "noao\r"
  6. expect "no>"
  7. send "digiphot\r"
  8. expect "di>"
  9. send "apphot\r"
  10. EOF
  11.  
  12. # Not Working
  13. expect <<'EOF'
  14. spawn cl
  15. expect {
  16.     "cl>"{send "noao\r"}
  17.     "no>"{send "digiphot\r"}
  18.     "di>"{send "apphot\r"}
  19. }
  20. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement