If you had said this at the time, we could've debugged it further.... We have multiple people here on these forums who can help you but for that we need details.I DID follow the instructions suggested in your July 9 msg, but if I remove the word "root" from my cron-tab, I get zero emails to root from my cron-job. In order to get the email report in my root mail, I MUST include the root addressee in the cron-tab, as I have shown it.
Believe me, for such a simple cron-job, 12 total lines, this has become stranger and stranger to me.
I have searched the literature I have on this subject, and have searched the web, and so far, have not found much help. That is why I ask here.
So far, I have become rather baffled by the result.
Ken Gordon
0. A part of the problem is definitely when *multiple* people write helpful messages, it can be confusing especially when a newbie (as a person who has some problem) doesn't know what is going wrong. Now if they try to follow the advice of more than one person, they can easily get confused and frustrated. Not sure what can be done about this....
1. The mail you *are* getting is from cron, *not* the mail command in your script. cron does so because there is no such program as root.
2. If the cronjob hangs, that means there is some problem with it. Looks like other people noticed a missing space between two quoted strings for this (which makes grep hang waiting for input?)
3. As always, when something doesn't work, what is needed is to *examine* what is going on, not change things. Trying a *different* suggested solution *will* get you confused.
4. By examine, I mean do a ps to see what is running. A series of ps will tell you if the program/script is stuck somewhere or progressing but just taking more time.
5. Always a good idea to test a cronjob script by running it manually *before* installing it.
6. When a suggested step doesn't work, it may be a good idea to post a response saying "here is what I tried and here is what happens". That gives people a clue as to what is going and a further step can be suggested.