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
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