Re: can't pipe to /dev/null ?

2003-03-31 Thread Sunil Sunder Raj
Hi,
Did you try
devnull:  |> /dev/null
Cheers
SSR





From: Len Conrad <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: can't pipe to  /dev/null ?
Date: Wed, 19 Mar 2003 11:20:35 -0600
in /etc/aliases:

devnull:  |/dev/null

and:

# ll /dev/null
crw-rw-rw-  1 root  wheel2,   2 Mar 19 11:13 /dev/null
but:

Mar 19 10:55:08 img10 postfix/local[41744]: 671235621: 
to=<[EMAIL PROTECTED]>, relay=local, delay=1, status=bounced (Command 
died with status 1: "/dev/null")

... is fixed with:

devnull:  |cat>/dev/null

 which gives:

Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: 
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
command: cat)

Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: 
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
file: /dev/null)

Piping into /dev/null has worked in the past, wondering why the cat command 
has become necessary?

Len



_
MenAndMice.com/DNS-training: Austin; Chicago; San Jose; Toronto
IMGate.MEIway.com: anti-spam gateway, 95+% effective, free
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


_

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: can't pipe to /dev/null ?

2003-03-19 Thread Rev. Joe Doyle Ardent
On Wed, Mar 19, 2003 at 12:09:31PM -0600, Len Conrad wrote:
> 
> >I think variant with cat is better, if you want without it
> >better will be
> >devnull: /dev/null
> 
> the latter works, thanks, Nik,
> 
> If you you have a minute, say why the cat step is better than just /dev/null
> 
Because /dev/null is not a program (it's a file), and cat is.  
You should only pipe to programs.


-Joe

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: can't pipe to /dev/null ?

2003-03-19 Thread Len Conrad

I think variant with cat is better, if you want without it
better will be
devnull: /dev/null
the latter works, thanks, Nik,

If you you have a minute, say why the cat step is better than just /dev/null

Len

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: can't pipe to /dev/null ?

2003-03-19 Thread Nikolay Y. Orlyuk
On Wed, Mar 19, 2003 at 11:20:35AM -0600, Len Conrad wrote:
> in /etc/aliases:
> 
> devnull:  |/dev/null
> 
> and:
> 
> # ll /dev/null
> crw-rw-rw-  1 root  wheel2,   2 Mar 19 11:13 /dev/null
> 
> but:
> 
> Mar 19 10:55:08 img10 postfix/local[41744]: 671235621: 
> to=<[EMAIL PROTECTED]>, relay=local, delay=1, status=bounced (Command 
> died with status 1: "/dev/null")
> 
> ... is fixed with:
> 
> devnull:  |cat>/dev/null
> 
>  which gives:
> 
> Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: 
> to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
> command: cat)
> 
> Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: 
> to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
> file: /dev/null)
> 
> Piping into /dev/null has worked in the past, wondering why the cat command 
> has become necessary?
Maybe because is match piping to program not file?
I think variant with cat is better, if you want without it
better will be
devnull: /dev/null
> 
> 

-- 
With best wishes Nikolay
mail: [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


can't pipe to /dev/null ?

2003-03-19 Thread Len Conrad
in /etc/aliases:

devnull:  |/dev/null

and:

# ll /dev/null
crw-rw-rw-  1 root  wheel2,   2 Mar 19 11:13 /dev/null
but:

Mar 19 10:55:08 img10 postfix/local[41744]: 671235621: 
to=<[EMAIL PROTECTED]>, relay=local, delay=1, status=bounced (Command 
died with status 1: "/dev/null")

... is fixed with:

devnull:  |cat>/dev/null

 which gives:

Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: 
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
command: cat)

Mar 19 11:13:51 img10 postfix/local[43231]: E5C4A5623: 
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
file: /dev/null)

Piping into /dev/null has worked in the past, wondering why the cat command 
has become necessary?

Len



_
MenAndMice.com/DNS-training: Austin; Chicago; San Jose; Toronto
IMGate.MEIway.com: anti-spam gateway, 95+% effective, free
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message