How do you run an infinite loop in shell script?

Phạm Quyết

New member
How do you run an infinite loop in shell script?
Answer
To set an infinite while loop use:
  1. true command – do nothing, successfully (always returns exit code 0)
  2. false command – do nothing, unsuccessfully (always returns exit code 1)
  3. : command – no effect; the command does nothing (always returns exit code 0)
29 мар. 2016 г.
 

Tìm kiếm

Back
Top