Commit 34fae026 authored by Kolbjørn Barmen's avatar Kolbjørn Barmen

Mye rart, shell til /bin/sh, rydde i variabelnavn

parent ef3546a1
#!/bin/bash
mp-rude=/usr/local/mp-rude
cd $mp-rude/etc
$mp-rude/tools/rude-config-maker -target $(hostname -f) rude-list.conf > rude.conf
#! /bin/sh
set -e
mp_rude="/usr/local/mp-rude"
"${mp_rude}"/tools/rude-config-maker -target $(hostname -f) rude-list.conf > "${mp_rude}"/etc/rude.conf
#!/bin/bash
#! /bin/sh
cat $1 | /bin/gzip > $2
#!/bin/bash
#! /bin/sh
source /etc/mp-rude/start.conf
. /etc/mp-rude/start.conf
mkdir -p $logpath/$date
log=$logpath/$date/traceroute_$1
mkdir -p "${logpath}"/"${date}"
log="${logpath}"/"${date}"/traceroute_$1
if test $2. -ne . ; then
if [ $2. -ne . ] ; then
end=$(date --date "$2" +%s)
else
end=$(date --date "2099-12-31" +%s)
......@@ -15,8 +15,8 @@ fi
# > $log.log
while test $(date +%s) -lt $end ; do
date "+%s starttime %T" | gzip -c >> $log.gz
traceroute -q 6 -n $1 2> /dev/null | gzip -c >> $log.gz
date "+%s starttime %T" | gzip -c >> "${log}".gz
traceroute -q 6 -n $1 2> /dev/null | gzip -c >> "${log}".gz
sleep 60
done
#) 9> $log.lock &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment