You will have to parse $stdout and $stderr to look for error/success indications. The cmd method is not going to raise a warning or abort if the remote command does, and I don't really think you want it to.
In reply to Re: how to report error when remote commands fail
by GotToBTru
in thread how to report error when remote commands fail
by janasec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |