Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Exit code from remote linux bash execution

$
0
0
Hello:

A bash shell script executes code and then echoes text and the screen and exits with a specific exit code like:

echo "This is my text"
exit 1

RunCommand captures the string "This is my text". How do I capture the exit code of 1?

Thanks

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>