[wiki] [sites] fix bashism and missing & in ii bot examples || Nico Golde

From: <hg_AT_suckless.org>
Date: Wed, 20 Jun 2012 23:05:31 +0200 (CEST)

changeset: 940:399a8bfab544
tag: tip
user: Nico Golde <nico_AT_ngolde.de>
date: Wed Jun 20 23:05:17 2012 +0200
files: tools.suckless.org/ii/bots.md
description:
fix bashism and missing & in ii bot examples


diff -r b06640b41f98 -r 399a8bfab544 tools.suckless.org/ii/bots.md
--- a/tools.suckless.org/ii/bots.md Mon Jun 18 14:14:46 2012 +0200
+++ b/tools.suckless.org/ii/bots.md Wed Jun 20 23:05:17 2012 +0200
_AT_@ -27,11 +27,11 @@
 If you want some kind of automatic reconnects in ii you can make a something like this in a shell script:
 
     while true; do
- ii -s irc.oftc.net -n iifoo -f "John Doe"
+ ii -s irc.oftc.net -n iifoo -f "John Doe" &
         iipid=$!
         sleep 5
         echo "/j #ii" > ~/irc/irc.oftc.net/in
- while [[ -e /proc/$iipid ]]; do
+ while [ -e "/proc/$iipid" ]; do
             sleep 30
         done
     done
Received on Wed Jun 20 2012 - 23:05:31 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:32:26 CEST