Xargs for email

From: Ron Sharcott (Sharcott@camosun.bc.ca)
Date: Thu Nov 30 2006 - 11:44:59 EST


Solution provided.

# This is where we send a notice out to latenight users
#who | awk '{print $1}' | sort -u | while read user ; do
#mailx -s "Warning: logoff nightly" $user <
/messages/nightly.logoff.computers.msg
#done

Avoid xargs and redirects. Loop the task as in a multiline command or a
script. Of course some solutions offered included using xargs to call a
shell with the command but these came after I had something working.

And never start a subject line on this list with "Re:" if you want to let
others know what a solution is. A royal pain that.

Ron Sharcott (3635)

-----Original Message-----
From: Bluejay@fujigreenwood.com [mailto:Bluejay@fujigreenwood.com]
Sent: Thursday, November 30, 2006 8:32 AM
To: Ron Sharcott
Subject: Re: Xargs for email

What was the solution?

                                                                      -
Bluejay Adametz
 
Make the most of what comes, and the least of what goes.

Ron Sharcott <Sharcott@camosun.bc.ca>
Sent by: tru64-unix-managers-owner@ornl.gov
11/30/2006 11:26

To
"'tru64-unix-managers@ornl.gov'" <tru64-unix-managers@ornl.gov> cc

Subject
Xargs for email

Thanks all. I believe I have a solution now.

Ron Sharcott (3635)



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:32 EDT