Help
-
Search
-
Members
-
Calendar
Full Version:
Bash Script
Neowin Forums
>
*nix Customization & Support
>
Linux Client Support
Inertia
Jan 7 2005, 03:03
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
Jan 7 2005, 03:27
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
Jan 7 2005, 04:13
Check out
http://www.tldp.org/LDP/abs/html
for more info on all the things that you can do.
Inertia
Jan 7 2005, 16:23
thanks guys
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.