Phạm Quyết
New member
How do you run an infinite loop in shell script?
Answer
To set an infinite while loop use:
Answer
To set an infinite while loop use:
- true command – do nothing, successfully (always returns exit code 0)
- false command – do nothing, unsuccessfully (always returns exit code 1)
- : command – no effect; the command does nothing (always returns exit code 0)