Inertia Posted January 7, 2005 Share Posted January 7, 2005 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 Link to comment https://www.neowin.net/forum/topic/267877-bash-script/ Share on other sites More sharing options...
rezza Veteran Posted January 7, 2005 Veteran Share Posted January 7, 2005 This should do it: #!/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. Link to comment https://www.neowin.net/forum/topic/267877-bash-script/#findComment-585247155 Share on other sites More sharing options...
revvo Posted January 7, 2005 Share Posted January 7, 2005 Check out http://www.tldp.org/LDP/abs/html for more info on all the things that you can do. Link to comment https://www.neowin.net/forum/topic/267877-bash-script/#findComment-585247296 Share on other sites More sharing options...
Inertia Posted January 7, 2005 Author Share Posted January 7, 2005 thanks guys :D Link to comment https://www.neowin.net/forum/topic/267877-bash-script/#findComment-585249764 Share on other sites More sharing options...
Recommended Posts