[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: [PATCH] silent job monitor when 'set +m'
From :
Jeff Chua
Subject :
Re: [PATCH] silent job monitor when 'set +m'
Date :
Wed, 11 Nov 2009 12:04:14 +0800
On Wed, Nov 11, 2009 at 12:44 AM, Chet Ramey <chet.ramey@case.edu> wrote:
> > How do you silent this one without a subshell.
>
> What's wrong with the approach above?
>
Nothing wrong, but can be made more efficient because "| grep" means another
subprocess which can be eliminated if the shell silents the Terminate
command in the first place.
#!/bin/bash
{
sleep 60 &
P=$!
kill $P
sleep 1
} 2>&1 | grep -v " Terminated"
exit
Jeff
Re: [PATCH] silent job monitor when 'set +m' , (continued)
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/08
Re: [PATCH] silent job monitor when 'set +m' , Jeff Chua , 2009/11/09
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/09
Re: [PATCH] silent job monitor when 'set +m' , Marc Herbert , 2009/11/09
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/09
Message not available Re: [PATCH] silent job monitor when 'set +m' , Jan Schampera , 2009/11/09
Re: [PATCH] silent job monitor when 'set +m' , Jeff Chua , 2009/11/10
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/10
Re: [PATCH] silent job monitor when 'set +m' , Jeff Chua , 2009/11/10
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/10
Re: [PATCH] silent job monitor when 'set +m' ,
Jeff Chua <=
Re: [PATCH] silent job monitor when 'set +m' , Jeff Chua , 2009/11/10
Re: [PATCH] silent job monitor when 'set +m' , Pierre Gaston , 2009/11/11
Re: [PATCH] silent job monitor when 'set +m' , Pierre Gaston , 2009/11/11
Re: [PATCH] silent job monitor when 'set +m' , Pierre Gaston , 2009/11/11
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/11
Re: [PATCH] silent job monitor when 'set +m' , Chet Ramey , 2009/11/11
Re: [PATCH] silent job monitor when 'set +m' , Jan Schampera , 2009/11/07