DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Spawn and Expect


Run this script:

#!/usr/bin/expect spawn ls -l expect "aaa" puts "bbb" expect "bbb"

you will get a

spawn_id?

When "ls -l" ends, it send a eof to expect script process, this signal canceled "expect aaa"?



Published

Aug 23, 2013

Last Updated

Aug 23, 2013

Category

Tech

Tags

  • expect 10

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor