shithub: 9intro

ref: 2b99422480d596ebc26921c87c6bb81a07949f3e
dir: /src/when/

View raw version
#!/bin/rc
rfork e
if (! ~$#* 2){
	echo usage $0 cond cmd >[1=2]
	exit usage
}
cond=`{echo $1}
cmd=`{echo $2}
while(sleep 15){
	{$cond} >/dev/null >[2=1] && { {$cmd} ; exit '' }
}