sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 054ca57f71b27c40dd37392bd0aa554b59877391
parent 4fd3fbed4a4a4bb16dadd49af71bc7be6a364221
Author: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
Date:   Fri, 13 Jul 2012 01:33:09 +0300

iibots: no need for a while/sleep loop, just wait on the pid
Diffstat:
Mtools.suckless.org/ii/bots.md | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/tools.suckless.org/ii/bots.md b/tools.suckless.org/ii/bots.md @@ -27,12 +27,10 @@ If you want some kind of automatic reconnects in ii you can make a something lik while true; do ii -s irc.oftc.net -n iifoo -f "John Doe" & - iipid=$! + iipid="$!" sleep 5 - echo "/j #ii" > ~/irc/irc.oftc.net/in - while [ -e "/proc/$iipid" ]; do - sleep 30 - done + printf "/j %s\n" "#ii" > ~/irc/irc.oftc.net/in + wait "$iipid" done bots for irc it (ii)