I have Stunnel working successfully in a batch file. I would like to write the error codes in case there is an issue. How do you do this?
In Windows, I could do something like:
"C:\Program Files\stunnel\stunnel.exe" -start -quiet stunnel.conf
goto %errorlevel%
:0
:: Normal Return - Complete Batch Process
goto :EOF
:1
:: Errors - Log them
Would this work or how do I get the stunnel return codes?
Bob