Sponsored Content
Full Discussion: cron's irregular responds
Operating Systems Linux Red Hat cron's irregular responds Post 302523633 by zaxxon on Thursday 19th of May 2011 08:48:59 AM
Old 05-19-2011
Add set -x at the beginning of your script.
Use following line in crontab:
Code:
* * * * * /usr/local/myscripts/cronstatus.sh >> /tmp/mycron.log 2>&1

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.
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

How to convert irregular lines into formatted column using awk in windows2003 server environment?

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)
Discussion started by: ruirus
0 Replies
All times are GMT -4. The time now is 06:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy