Xargs for email

From: Ron Sharcott <Sharcott_at_camosun.bc.ca>
Date: Thu, 30 Nov 2006 08:44:59 -0800

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_at_fujigreenwood.com [mailto:Bluejay_at_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_at_camosun.bc.ca>
Sent by: tru64-unix-managers-owner_at_ornl.gov
11/30/2006 11:26

To
"'tru64-unix-managers_at_ornl.gov'" <tru64-unix-managers_at_ornl.gov> cc

Subject
Xargs for email






Thanks all. I believe I have a solution now.


Ron Sharcott (3635)
Received on Thu Nov 30 2006 - 17:35:44 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT