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

Re: howto recreate /dev/null ?



On Thu, Aug 31, 2000 at 11:35:46PM -0500, Will Trillich wrote:
> what's redirecting to '/dev/null' good for? here's
> an example. if you're not running 'fetchmail' as its
> own background daemon, to yank your email from various
> servers, you can have cron do it for you. the thing is,
> you get lots of tripe in the output. it tells you all
> about how each message contains X octets, and how it's
> downloading the data... none of which you really need.
> 
> 15 * * * * fetchmail > /dev/null 2>&1

Not to be mean or anything, but FYI fetchmail can be made 
silent with "-s":
  -s, --silent      work silently

But then again, you probably already knew that. :)

> you can also use /dev/null for STDIN as in
> 	somecommand < /dev/null
> in which case for ANY 'read' that the command does
> from STDIN, it'll get EOF forever.

Yup, just like the following line demonstrates nicely:  :)

> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org \
>	< /dev/null

Sven
-- 
Have you rebooted your NT box today?



Reply to: