#!/bin/bash # Write a shell script to display the process running on the system for every # 30 seconds, but only for 3 times. # ------------------------------------------------------------------------- # Copyright (c) 2008 nixCraft project <http://www.cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ------------------------------------------------------------------------- # This script is part of nixCraft shell script collection (NSSC) # Visit http://bash.cyberciti.biz/ for more information. # ------------------------------------------------------------------------- # # for loop 3 times for r in 1 2 3 do #see every process on the system echo "**************************** x^x^x ****************************" ps -e echo "**************************** x^x^x ****************************" #sleep for 30 seconds sleep 3 # clean done
4000+ howtos and counting! If you enjoyed this article, join 45000+ others and get free email updates!
Click here to subscribe via email.
Click here to subscribe via email.
- Download Script
- Email this to a friend
- Rss Feed
- Last Updated: 09/13/08






