#!/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
Shell Script To Display The Running Process Running On The System Every 30 Seconds For 3 Times Only
Previous post: htpasswd Replacement: Perl Script To Create Password Using crypt()
Next post: Perfect PHP Pagination
Sign up for our daily email newsletter:
You must log in to post a comment.