Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Linux only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Linux
Create Infinite Loop In Bash
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Gabriel9999
New Member
Join Date:
Jul 2019
Posts:
15
#1
Create Infinite Loop In Bash
Apr 21 '20, 02:19 PM
I want to run a command for ever in the Linux bash. Also I want to put 60 seconds between command execution.
SioSio
Contributor
Join Date:
Dec 2019
Posts:
272
#2
Apr 22 '20, 06:37 AM
Code:
while : do echo hello sleep 60 done
Comment
Post
Cancel
edizgeorgi
New Member
Join Date:
Oct 2019
Posts:
8
#3
Apr 23 '20, 11:54 AM
You can use bash infinite loops with the while loop like
while true; do echo "test"; sleep 60; done
Last edited by
Rabbit
;
Jun 11 '20, 07:19 PM
.
Reason:
Removed external link
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment