From 5b723a9da5b94d3a99225f43c7dafcffa1f7676b Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Tue, 26 Aug 2014 03:27:31 -0500 Subject: fixed the rand() seeding to use pid too so bots started in the same second don't generate the same random nick. made shell use pkill stuff instead of kill `pgrep stuff` --- shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell b/shell index 32b6c2b..2d98edf 100755 --- a/shell +++ b/shell @@ -1,6 +1,6 @@ #!/bin/sh #this is to keep stale tails from hanging around... -kill `pgrep -P 1 -f "tail -f /home/segfault/files/cmd_in"` +pkill -P 1 -f "tail -f /home/segfault/files/cmd_in" mkdir -p /home/segfault/files mkfifo /home/segfault/files/cmd_in mkfifo /home/segfault/files/cmd_out -- cgit v1.2.3