blob: e531ac41ce7a6138ab3fef21b7b0fd40f5b6cb8d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
--- fanterm.orig
+++ fanterm
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#Copyright 2002, 2003 William Stearns <wstearns@pobox.com>
#Released under the GPL
#V0.6.1
@@ -19,11 +19,6 @@
trap FanTermCleanup SIGINT #Ctrl-C generates this
-if ! type -path mktemp >/dev/null 2>/dev/null ; then
- echo "Sorry, no mktemp utility, exiting." >&2
- exit 1
-fi
-
if [ -z "$1" ]; then
echo Usage: >&2
echo "$0 ssh_host [ssh_host]..." >&2
@@ -45,13 +40,13 @@
echo "$0: Can't create temp file $InPipe." >&2
exit 1
fi
- mknod --mode=600 $InPipe p
+ mkfifo -m 600 $InPipe
OutPipe=`mktemp -q -u /tmp/fanout.XXXXXX`
if [ $? -ne 0 ]; then
echo "$0: Can't create temp file $OutPipe." >&2
exit 1
fi
- mknod --mode=600 $OutPipe p
+ mkfifo -m 600 $OutPipe
InPipes="$InPipes $InPipe"
OutPipes="$OutPipes $OutPipe"
@@ -62,7 +57,7 @@
fi
done
-fanmux $InPipes
+%%LOCALBASE%%/bin/fanmux $InPipes
wait
|