[App_rpt-users] dev/null

David McGough kb4fxc at inttek.net
Sat Aug 22 20:33:19 EDT 2015


Hi Robert,

I believe the &> redirection operator is bash specific and means to 
simultaneouly redirect both stdout and stderr.

So, these two statements should be the same:

	>/dev/null 2>&1

	&>/dev/null

As you have listed below, the 2>&1 is redundant on the second statement.


73, David KB4FXC


On Sat, 22 Aug 2015, Robert Newberry wrote:

> I appreciate all of the replies. So is there any difference between these
> two? I have both in my cron and most of that has come from different
> scripts I've used.
> 
> >/dev/null 2>&1
> 
> &> /dev/null 2>&1
> 
> N1XBM
> Apparare Scientor
> Paratus Communicare
> Allstar Node # 27086, 41540, 41812, 42086
> 




More information about the App_rpt-users mailing list