[SLUG] Bash Help

Paul Teasdale pdt at rcsuk.fsnet.co.uk
Mon Sep 6 20:58:08 BST 2004


On Monday 06 Sep 2004 20:22, Phil Kershaw wrote:
> Gav,
>
> That worked great thanks. I know it's a small thing but is there a
> way of stopping the   ps -A | grep "$PPID.*aterm$"
> line echoing to the terminal?
>
> Regards
>
> Phil

Hi Phil,

Try this:

ps -A | grep "$PPID.*aterm$" 1> /dev/null 2> /dev/null

This should stop the command echoing to the terminal. In fact to be 
honest you only need 1> /dev/null but I have put both above to show you 
that more than one possibility exists.

1> /dev/null will send all normal messages to the bit bucket
2> /dev/null will send any error messages to the bit bucket.

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