After upgrading usermin from 1.650 directly to 1.780, we are getting following message intermittently in output of our commands in 'Custom Commands' module
Command failed with exit status -1
We have verified that there is no error in the script running behind the scene in 'Custom Commands' and all exceptions are being captured and the script last line is 'exit 0'
It is even more confusing as the same command running as expected (without this message) while executed from Webmin > Others > 'Custom Commands' screen.
Is there a way we can suppress this message from usermin/webmin configuration? or is there a fix for this bug?
OS: Solaris 11.4
Browser: IE and Chrome (not tested on other browser)
Same here, still an issue in Webmin 1.955 on platform Solaris.
Does this still happen even for trivial commands, like "/bin/true" ?
No, that's fine:
Output from /bin/true ..
No output generated
But f.e.:
Output from echo ""; echo ""; date; echo ""; /usr/lib/dns/rndc reload; sleep 2; tail -20 /var/adm/messages | grep named; echo ""; date ..
Mon Sep 28 09:33:32 MEST 2020
server reload successful
Mon Sep 28 09:33:35 MEST 2020
Command failed with exit status -1
This also happens if I put all into a new custom command.
So does it fail for all scripts, and/or all lists of multiple commands?
See some more test results (can you reproduce it on your solaris box, too?):
Output from /bin/true; /bin/true ..
No output generated
Output from /bin/true; /bin/false ..
No output generated
Command failed with exit status 65280
Output from /bin/true; date; /bin/false ..
Wed Sep 30 09:08:25 MEST 2020
Command failed with exit status -1
Also I would suggest to add three dots at the end of the Output line, as that is more common than only two.