Hi,
We're getting errors from the MSM session_cleanup.sh script - we run it from Cron every night at 00:00. I'm getting the following error:
Your "cron" job
/export/www/mysource_matrix/scripts/session_cleanup.sh /export/www/mysource_matrix
produced the following output:
/export/www/mysource_matrix/scripts/session_cleanup.sh: test: argument expected
We're running MSM 3.20.0 on Solaris 10. My suspicion is that it's something to do with the shell the script is running under - it's written to run under /bin/sh, I've tried changing to /bin/bash and /usr/xpg4/bin/sh but that usually results in more errors such as:
/usr/xpg4/bin/find: illegal option – n
/usr/xpg4/bin/find: [-H | -L] path-list predicate-list
Any help appreciated.
TIA
It sounds like the session_cleanup.sh script isn't Solaris-friendly 
It looks as though there's been some Solaris thought put into it at some point - it's got sections such as:
if [ "$OS" = "SunOS" ]; then
# xpg4 = posix compliant system utils
# find doesn't have mmin
if [ ! -d /usr/xpg4/bin ]; then
echo "POSIX compatable binaries not found in /usr/xpg4, you will need to add them to use this script."
exit 1;
fi;
GREP=/usr/xpg4/bin/grep
SED=/usr/xpg4/bin/sed
FIND=/usr/xpg4/bin/find
FIND_TIMEARG="-mtime"
FIND_TIMEOFFSET="86400"
else
GREP=`which grep`
SED=`which sed`
FIND=`which find`
FIND_TIMEARG="-mmin"
FIND_TIMEOFFSET="60"
fi;
It may be a Solari10-ism - it can be quite different from previous versions of Solaris