1 2 3 4 5 6 7 8 9 10
#!/bin/sh ./test &>./test.log if [ $? -eq 0 ] then echo "PASS: mdadm" rm test.log else echo "FAIL: mdadm" fi