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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -