rrd tmp acorp-rrd askpass mktemp -t acorp-graph XXXXXX exit chmod 700

 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
rrd="/tmp/acorp-rrd"
askpass=`mktemp -t acorp-graph.XXXXXX` || exit 1
chmod 700 "$askpass" || exit 1
cat <<EOF >"$askpass"
#!/bin/sh
echo PASSWORD
EOF
...
while true; do
tpl_val=$(
SSH_ASKPASS=$askpass setsid ssh acorp "iptables -L FWD_STAT -vnx; free; ifconfig ppp0" \
| \
{
..........
}
)
...
sleep $(( 15 - ($(date +%s) % 15) ))
done
# vim:set tabstop=4 softtabstop=4 shiftwidth=4: