Code: Select all
[root@vs5 sys]# service scalix status
/etc/init.d/scalix: line 121: [: missing `]'
*** vs5 not present
Had a look at the file, and noticed a ']' brace missing, so I added it to the end of the if...omrealpath line per below...
Code: Select all
status)
for name in $(omcheckgc -l); do
export OMCURRENT=$name
if [ -f $(omrealpath '~/sys/sysdata') ]
then echo "*** $OMCURRENT"
omstat -a; omstat -s
else echo "*** $OMCURRENT not present"
fi
done
;;
And now the status command/script runs correctly.
Cheers, Paul