Is there any way I can use bash script along with /usr/bin/expect commands?
Could I, for instance, use an if statement in a usr/bin/expect script?
Is there any way I can use bash script along with /usr/bin/expect commands?
Could I, for instance, use an if statement in a usr/bin/expect script?
expect
is an extension oftcl
- therefore you can use the programming constructs oftcl
- these include 'if'.Tcl command man pages are available: tcl.tk/man/tcl8.5/TclCmd/contents.htm
Here is a very simple script that connects to a server via ssh from bash: