in reply to regular expression matching in expect
Am i taking the right approach
Having done a lot of this, I would:
Something like this:
ssh admin@host "sudo /path/to/wrapper.pl"
Where the wrapper might:
... die("...") if system("/path/to/cmd1.sh")!=0; die("...") if system("/path/to/interactive-cmd-exp.pl")!=0; ...
|
|---|