This script should auto mount a file system on a Linux server.
testcheck=`df -h | awk '{print $6}' | grep "/test"`;
if [$tescheck -ne "/test"]
then
mount /test
else
echo "failed";
fi
I'm having a problem in the condition for making if
statement true or false.
What am I doing wrong? Are there any alternatives that I can use?
$(...)
is in POSIX. – Michael Homer Jan 29 '16 at 09:09