-
Posts
7135 -
Joined
-
Last visited
-
Days Won
4
Community Answers
-
RobJ's post in Have script check for Array being up before executing? was marked as the answer
Don't know if this is what you want, but hopefully you can derive something from this bash script piece.
# Check if array is started ls /mnt/disk[1-9]* 1>/dev/null 2>/dev/null if [ $? -ne 0 ] then echo "ERROR: Array must be started before using this script" exit fi