Topic
1 reply Latest Post - ‏2006-06-13T11:35:28Z by SystemAdmin
SystemAdmin
SystemAdmin
232 Posts
ACCEPTED ANSWER

Pinned topic How to script a continuous loop

‏2006-06-11T16:30:07Z |
I need to create a script that continually loops. I don't want to use cron to keep re-running a script, but I need a script that I can run from a command line that will continually loop until it is terminated.

Please can I get some suggestions as to how I can accomplish this?

Thanks
Updated on 2006-06-13T11:35:28Z at 2006-06-13T11:35:28Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    232 Posts
    ACCEPTED ANSWER

    Re: How to script a continuous loop

    ‏2006-06-13T11:35:28Z  in response to SystemAdmin
    In bash, you can do this:
    code
    while true
    do
    # your code goes here
    done
    [/code]