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

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



On Mon, Sep 03, 2007 at 01:28:44PM +0200, Rainer Traut enlightened us:
> my cron scripts send me error messages though I cannot find any error.
> 
> An example:
> 
> [tr report ~]$ cd /tmp
> [tr report tmp]$ mkdir myDir
> [tr report tmp]$ rmdir -v myDir/ 2>&1 >/dev/null
> rmdir: Verzeichnis wird entfernt, myDir/
> [tr report tmp]$ echo $?
> 0
> [tr report tmp]$
> 
> It seems the verbose rmdir output goes to error out.
> Should I file BZ?
> 

No, you should put the redirections in the proper order.

rmdir -v myDir/ >/dev/null 2>&1

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263


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