Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using mail in awk

Status
Not open for further replies.

fluxdemon

MIS
Nov 5, 2002
89
US
Is there a way I can use awk (or something else) to place info from a file into mail?

ps -cefo user,time,args |

awk '$1!="USER" && $1!="root" && $1!="daemon" && $2>2 {print $1":"$3}'
> mail.me

I'm not having much luck passing or using pipe to pass the info to mail

awk '{mail $1 < $2}' mail.me
 
Just do ps -options | awk 'awkscript' | mail -s &quot;message subject&quot; your@address. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top