Add set -x at the beginning of your script.
Use following line in crontab:
My guess is, that there will not be "running" in that $crond, since you don't have PATHs etc. available when starting scripts via cron. You have no environment active so commands like service, cut, awk, grep... will not be found and so with produce some errors where the test fails.
After a run there should be a log file /tmp/mycron.log where the output can be analyzed.
Dear experts,
I'm newbie to awk scripting. Need your great help to convert the irregular lines into column using awk in windows2003 server environment. (Sorting based on "Pri Number" column)
Input files is as follows:
Partition Name: OA
Partition UID: ... (0 Replies)