[SLUG] Bash Help

Paul Teasdale pdt at rcsuk.fsnet.co.uk
Tue Sep 7 07:54:46 BST 2004


On Monday 06 Sep 2004 21:55, Gavin Baker wrote:
>
> Or equivalently
>
> ps -A | grep "$PPID.*aterm$" &> /dev/null
>
> &> redirects both stdout and stderr, so it's just shorthand for Pauls
> suggestion.

Thanks for that one Gavin. I've often wondered if there was a catch all 
but never bothered to find out. You have just confirmed that there is 
indeed a way of capturing both stdout and stderr. Nice :)

Kind regards,

Paul.

-- 
Linux User #351704 (http://counter.li.org)
Scarborough LUG Member (http://www.scarborough.lug.org.uk)
Another Happy Slacker!! (http://www.slackware.com)





More information about the Scarborough mailing list