Register
Members List
Social Groups
Search
Today's Posts
Mark Forums Read
Member Login
Remember Me?
Sign Up!
|
Forgot Password
Computer Forums
>
PC Technology Zone
>
Linux, BSD, other *nixes & Open Source Software
» Quick BASH question
LinkBack
Thread Tools
Display Modes
10-18-2006, 11:17 PM
#
1
(
permalink
)
Greg
Indeed.
Join Date: Dec 2004
Posts: 1,554
Quick BASH question
I was wondering, how do you make a bash script repeat itself indefinitely? I Googled it but found no answer.
Thanks
~Greg
__________________
10-19-2006, 03:22 AM
#
2
(
permalink
)
The General
Banned
Join Date: Sep 2005
Posts: 5,191
At the end of it, put sh /path/to/itself.sh like this
Code:
#!/bin/bash printf "Hello World!" sh /home/ted/bin/lol.sh
/home/ted/bin/lol.sh being the name of the script.
10-19-2006, 10:05 AM
#
3
(
permalink
)
horndude
Master Techie
Join Date: Apr 2004
Posts: 2,534
or just make an infinite loop:
x=1
while x=1 do
10-19-2006, 07:04 PM
#
4
(
permalink
)
Greg
Indeed.
Join Date: Dec 2004
Posts: 1,554
Cool, thanks guys
__________________
«
Problem with Red Hat Linux
|
Flash 9 Beta for Linux!!!!!!!!!!!!!!!!!
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Contact Us
-
Computer Technology Forums
-
Archive
-
Top
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Furl this Thread!