Custom HPC software & tools from Wirawan. Primarily tailored toward ODU HPC sytems.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
346 B

#!/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