Xargs for email

Ron Sharcott <[email protected]>
Newsgroups gmane.os.tru64.managers
Message-ID <[email protected]>
Anyone know if its possible to do the following?

who | awk '{print $1}' | sort -u | xargs -i echo `mailx -s "Nightly logoff
computers" {} < /messages/nightly.logoff.computers.msg`


Xargs seems to try and read the incoming file as if each word is a parameter
so the verbiage ends up in the 'To' line. Is there a better way to approach
this?

Ron Sharcott (3635)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.