Help - Search - Members - Calendar
Full Version: Bash Script
Neowin Forums > *nix Customization & Support > Linux Client Support
Inertia
Hi,

I have no experience of bash scripting other than poking about in existing scripts.

I would like to make a bash script which runs a command pauses for 3 minutes then loops.

anyone care to lend a hand ?

Thanks
rezza
This should do it:

CODE
#!/bin/bash

while [ true ]; do
   echo "Insert your commands here"
   sleep 180s
done


Oh, and moved here. Please use the HOWTO section for writing completed HOWTOs and guides, not for asking questions.
revvo
Check out http://www.tldp.org/LDP/abs/html for more info on all the things that you can do.
Inertia
thanks guys biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.