From: Ron Sharcott <Sharcott@camosun.bc.ca>
Subject: Xargs for email
Date: Wed, 29 Nov 2006 10:15:05 -0800 [thread overview]
Message-ID: <48F1819CF0FBFC438A9A2771BBC5BAAF0AC60809@exchsrv3.camosun.bc.ca> (raw)
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)
next reply other threads:[~2006-11-29 18:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 18:15 Ron Sharcott [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-30 16:25 Xargs for email Ron Sharcott
2006-11-30 16:44 Ron Sharcott
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox