Ok, first of all there's no such thing as "linux scripting".
There are many ways to do this, you can run the script on the command line and tell it to send the output to mail whomever (i.e., ./foobar |mail user@somewhere) or you can put it in the script like so: #!/bin/bash
for j in user@somewhere
do
vmstat 1 10 > output
iostat 1 15 >> output
echo "here are your stats" >> output
mail output $j
done
Hope this helps d3funct
zimmer.jon@cfwy.com
The software required `Windows 95 or better', so I installed Linux.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.