Changeset 11849


Ignore:
Timestamp:
08/08/11 17:28:41 (13 years ago)
Author:
Daniela Dorner
Message:
small fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/CheckNTPDate.sh

    r11848 r11849  
    55#
    66
    7 offset=`ntpdate -d ptbtime1.ptb.de 2>/dev/null | grep '^offset*' | cut -d' ' -f2`
     7offset=`/usr/sbin/ntpdate -d ptbtime1.ptb.de 2>/dev/null | grep '^offset*' | cut -d' ' -f2`
    88query="INSERT NTPDate set fOffset="$offset", fMachineKEY=(SELECT fMachineKEY from Machine WHERE fMachineName='"$HOSTNAME"'), fTime=Now()"
    9 #echo $query
    10 /usr/bin/mysql -u systemstatus --host=fact01 SystemStatus -e "$query"
     9# host needs full address to work also on fact01
     10/usr/bin/mysql -u systemstatus --host=fact01.ethz.ch SystemStatus -e "$query"
    1111
    1212
Note: See TracChangeset for help on using the changeset viewer.