Re: Sorry newbie question, Varables and output
I would recommend instead of using a variable actually using a file in /tmp to store all the info. Then just output that file with cat notice thee difference between backtick ` (left of 1 on most keyboards) and apostrophe '
Hope this helps!
mysqladmin -umysql ping > /tmp/result
cat `/tmp/result` | mail -s “mysql” email@example.com
Desktop: Z77X-UD5H, Intel i7 3770k, NVidia GeForce 660 Ti Sli 16GB DDR3 RAM 2TB HDD
OSes: Mint 14 x64 Windows 7 Ultimate x64
Laptop: Dell Latitude E6430
OSes: Ubuntu 13.04 x64, Backtrack 5 R3