Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 934 Bytes

__index__.md

File metadata and controls

46 lines (35 loc) · 934 Bytes

shlib / expect

expect

Routines for interfacing to interactive applications

example

	import expect

	expect.open ssh://[email protected]

	if expect.match "*assword:*"; then
		expect.write 'FakePassword'
	fi

	while expect.read; do
		case "$(expect.line)" in
		(prompt)	do_stuff;;
		esac
	done

expect routines

open, read, match, regexp, write, popen, timeout, close