File: execute_dmachinemonhtml

package info (click to toggle)
dmachinemon 0.11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,312 kB
  • ctags: 277
  • sloc: ansic: 2,571; sh: 2,476; makefile: 218
file content (15 lines) | stat: -rwxr-xr-x 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
MACHINEID=$1
PORTNUMBER=$2
HTMLFILE=$3
HTMLFILETMP=$3.tmp
if [ -z $HTMLFILE ] ; then
    cat <<EOF
$0 serveraddress portnumber outputhtmlfile
    creates an html output from the information obtained from the 
    server on outputhtmlfile, and renews the information every 5 seconds.
EOF
    exit 1
fi
while true; do dmachinemon-htmloutput -p $MACHINEID -c $PORTNUMBER > $HTMLFILETMP && mv $HTMLFILETMP $HTMLFILE; sleep 5s ; done