From afc36c1874ead0a61d77846384081488d9616eb7 Mon Sep 17 00:00:00 2001 From: realraum Date: Wed, 13 May 2009 15:49:16 +0000 Subject: [PATCH] ... --- checkcard.pl | 2 +- tuer_socat.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 tuer_socat.sh diff --git a/checkcard.pl b/checkcard.pl index 18109d4..263ffe7 100755 --- a/checkcard.pl +++ b/checkcard.pl @@ -6,7 +6,7 @@ my $fh; #my $fifofile = "/tmp/door_cmd.fifo"; my $socketfile = "/tmp/door_cmd.socket"; -exit(1) unless (-S $socketfile); +sleep(1) while (! -S $socketfile); my $socketaddr = sockaddr_un($socketfile); my $keys; diff --git a/tuer_socat.sh b/tuer_socat.sh new file mode 100755 index 0000000..dec15e3 --- /dev/null +++ b/tuer_socat.sh @@ -0,0 +1,2 @@ +#!/bin/bash +socat UNIX-CONNECT:/tmp/door_cmd.socket - -- 1.7.10.4