mirror of https://github.com/BOINC/boinc.git
12 lines
332 B
Plaintext
12 lines
332 B
Plaintext
|
#! /bin/csh
|
||
|
|
||
|
set UPTIME = `/usr/bin/uptime | awk '{print $10}' | sed s/,//`
|
||
|
if ($UPTIME == "average:") then
|
||
|
set UPTIME = `/usr/bin/uptime | awk '{print $11}' | sed s/,//`
|
||
|
endif
|
||
|
|
||
|
set CIVDATE = `/bin/date "+%c:%m:%d:%H:%M" | awk '{print $5}'`
|
||
|
set UNIXDATE = `/usr/local/bin/perl -e 'print time()'`
|
||
|
|
||
|
echo $CIVDATE $UNIXDATE $UPTIME
|