‘nix-bits

Finding the highest non-root process:
ps xuh -U root -u root -N --sort -%cpu

Sending file contents from command line with sendmail
(Many POSIX apps read stdin as the contents for argument/filename “-” )

cat - file.log << EOF | sendmail -t to:recipient@somewhere.com from:you@yourdomain.com subject:Testing 123 EOF

Leave a Reply