The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-01-2007
TonyLawrence TonyLawrence is offline
Registered User
  
 

Join Date: Sep 2007
Location: SE Mass
Posts: 146
The general format is

while :
do
cmd1
cmd2
..
sleep 60
done

In this case we'll sleep 60 seconds between executing commands.

For the second part (formatting the output), we'd need to know what you want it to look like.. but again rather generally:

..
cmd1 | filter_script >> somefile
..