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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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
 
Déja vu? See my response in the -General UNIX Discussion forum: thread80-418711 Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top