on login node. Currently supposed to be used for Turing only.master
parent
1387997010
commit
a65338a8bf
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
||||
#!/bin/bash |
||||
|
||||
DATETIME=$(date +"%Y%m%d-%H%M%S") |
||||
LOGDIR=$HOME/admin/login-patrol/turing |
||||
|
||||
whats_going_on () { |
||||
date |
||||
echo |
||||
top -b -n 1 | head -n 60 | tee $LOGDIR/top-${DATETIME} |
||||
echo |
||||
ps fuxa > $LOGDIR/ps-fuxa-${DATETIME} |
||||
cat $LOGDIR/ps-fuxa-${DATETIME} |
||||
} |
||||
|
||||
if test -t 1; then |
||||
whats_going_on | less |
||||
else |
||||
whats_going_on |
||||
fi |
Loading…
Reference in new issue