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; ...
In reply to Re: regular expression matching in expect
by hbm
in thread regular expression matching in expect
by cmastays
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |