I am attempting to get scripts to run on a solaris box (SunOS 5.10 sun4v). Its a simple script that returns the uptime of the system.
------------------------------------------
#!/bin/ksh
utime=`uptime`
days=`uptime | awk '{print $3}'`
echo "Message: $utime"
echo "Statistic: $days"
exit 0
--------------------------------------------
The error message I am receiving is "Connection timeout. Job canceled by scheduler."
I can see the solarwinds script user logging into the server via ssh. I can also see the temp. script files in /tmp and they are executable and return valid results.
The user stays logged in for 5 minutes (polling timeout), then disconnects. Doing a "who", I can see the the user is sitting at a "sh" prompt for a majority of the time. It seems as if its having issues exiting the shell after its done running the script?