Bash Example Script #2

I have added the following function to my bash example script: # Run external command and only procced, when exit code is 0 function try { $@ returnValue=$? echo “$returnValue” if [ $returnValue -ne 0 ] then log $ERROR “$@ Continue Reading …

Bash Example Script

These days I use bash more and more often for simple tasks on my Linux system, as well as for a University course I am taking. Have a look at the script: #!/bin/bash # Skript: bash_example.sh # Credit to: http://www.pro-linux.de/artikel/2/111/ Continue Reading …