How i can create while loop as SINGLE LINE for command-line /bin/sh -


i can't create cycle single line in /bin/sh

i tried:

while true; do; sleep 1; done

how can it?

if want sleep 1, remove ; after do.

if want run command , sleep 1, add command after do so:

while true; echo "hi"; sleep 1; done


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -