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

Re: Allusers Email with Sendmail



Daniel,

Try 
ypcat passwd | awk -F: '$3 > 100 { print $1 }' > /etc/mail/allusers

which will get round the shell command-line buffer issue.

--
HTH
Sanjeev

From: "Daniel Hooper" <dhooper@ofc.emerge.net.au>

red:/var/yp/# awk -F: '$3 > 100 { print $1 }' `ypcat passwd` >
/etc/mail/allusers

and I get this: 

bash: /usr/bin/awk: Argument list too long




Reply to: