reply

if you haven’t discovered this tool already, it’s about time you did. this champ can automate any task performed on the console:

just install expect and autoexpect from expect.tgz and then run:

autoexpect -p anyinteractive-binary
> command one
> command two
> do this and this
> exit

this will make a file script.exp which you’d chmod 777 and then ./run
this is very useful for ftp, telnet, maybe grub, gpg –edit-key or any other interactive cli utility!

[WRITTEN] 04. Sep 2009 14:18 [CATEGORY] geek

Comments

Leave a Reply