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

Re: My script almost works but spams the terminal its launched from if useing dash.

On 04/21/2016 11:19 PM, Andrew McGlashan wrote:

On 17/04/2016 3:11 AM, Aero Maxx wrote:
bin/mailwatcher > /dev/null 2>&1 &
Perhaps better still...
   bin/mailwatcher >& /dev/null &
I hadn't thought about that particular incantation. It is one of the strengths of bash (and some other shells) that there are several different incantations that achieve similar or same results. You get to speak the dialect you feel most comfortable with!!:-)

Without specifying STDOUT or STDERR you get both.




Reply to: