[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: small 'rmdir' bug on EL3 and EL4?



Michael Schwendt schrieb:
On 04/09/07, Rainer Traut wrote:
Michael Schwendt schrieb:

since apparently you want a completely silent rmdir.
 From what do you conclude?

Redirection of stdout and stderr to /dev/null. If you wanted error

No I don't do this, never did.
I redirect stdout to /dev/null and stderr to console.
Yes the latter is unneeded in cron because I get stderr anyway in cron's mail. This was probably causing the confusion here.

 >> I said:

"As I said in my first post, I have cron scripts which should only give
output if there is something wrong.

But that is not what option --verbose does. If you don't want the
extra output for each processed dir, don't add the option. The option
doesn't give you any other output.
But 'rmdir' with -v option always writes to stderr so I always get mails
from these scripts."

Then why do you use that option?

Because I want/need it in the scripts.
I want to run these scripts from console without redirection and see verbose output. Especially scipts which delete something should show me exactly for debugging what they're doing.

Rainer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]