Re:Show HN: New unix utility "when"
by chingjun on Wednesday December 11, 2013 @11:46AM
(#6888630)
What is the difference between this and 'while true; do cmd1 && cmd2; sleep 1; done'
[ Parent
| on HN ]
It looks to me more like
until cmd1 ; do sleep 1 ; done ; cmd2Exactly. But, see the -t flag, which is the real reason I wrote it. -t is a non-trivial script (if it's even possible in shell).
It defaults to the until behavior because it's most common.
Could you give some more examples of how you use `-t` ?
Re:Show HN: New unix utility "when"
by d_theorist on Wednesday December 11, 2013 @12:14PM
(#6888883)
Yeah. I was thinking this.