change paths

This commit is contained in:
ville rantanen
2014-03-24 08:52:59 +02:00
parent 05176f0986
commit 01fc9ecd2e
2 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ if [ "$OPTIND" -gt 1 ]
then shift $(( $OPTIND-1 )) then shift $(( $OPTIND-1 ))
fi fi
status_folder="/mnt/csc-cloud/vm_state" status_folder="/mnt/csc-gc5/vm_state"
if [ ! -d "$status_folder" ] if [ ! -d "$status_folder" ]
then echo $status_folder not mounted then echo $status_folder not mounted
exit exit

View File

@@ -3,7 +3,7 @@
cores=$( grep -c processor /proc/cpuinfo ) cores=$( grep -c processor /proc/cpuinfo )
# verbose mode # verbose mode
tgtf=/mnt/csc-cloud/vm_state/${HOSTNAME}.long tgtf=/mnt/csc-gc5/vm_state/${HOSTNAME}.long
# debug # debug
if [ -z "$1" ] if [ -z "$1" ]
then touch "$tgtf" then touch "$tgtf"
@@ -19,7 +19,7 @@ fi
# concise mode # concise mode
tgtf=/mnt/csc-cloud/vm_state/${HOSTNAME}.short tgtf=/mnt/csc-gc5/vm_state/${HOSTNAME}.short
# debug # debug
if [ -z "$1" ] if [ -z "$1" ]
then touch "$tgtf" then touch "$tgtf"
@@ -37,7 +37,7 @@ then echo -n "|$HOSTNAME L:" > "$tgtf"
ps a --format user| grep -v -e root -e USER | sort -u | wc -l | tr -c -d [:digit:] >> "$tgtf" ps a --format user| grep -v -e root -e USER | sort -u | wc -l | tr -c -d [:digit:] >> "$tgtf"
TZ="Europe/Helsinki" date "+ @%H:%M" >> "$tgtf" TZ="Europe/Helsinki" date "+ @%H:%M" >> "$tgtf"
# save history # save history
echo -e "$HOSTNAME\t$load\t$used\t"$( date +%s ) >> /mnt/csc-cloud/vm_state/history/${HOSTNAME} echo -e "$HOSTNAME\t$load\t$used\t"$( date +%s ) >> /mnt/csc-gc5/vm_state/history/${HOSTNAME}
fi fi