Purpose: Capture top, uptime, and ps results.
USAGE
For use with Mac OS X or Linux systems.
Copy "processes.sh" to desired location.
Directions for calling it from another script. Also written in the script comments. Uncomment hashtag to write to file. Change function to output different format.
top_func #> top.txt
uptime_func #> uptime.txt
ps_func #> ps.txt
Call this script from another script by the following usage example: bash processes.sh /bin/bash /path/to/script