#!/bin/tcsh

# used to show time stamp
alias tsecho 'echo `date "+%Y/%m/%d %H:%M:%S"` = '


tsecho list BeamExe from ls
ls -latr --full-time BeamExe.*

tsecho list BeamExe from ps
ps -U `id -un` uwww | grep BeamExe

setenv pid `ls -tr BeamExe.* | tail -n 1 | awk -F. '{print $2}'`
tsecho kill BeamExe, pid = ${pid}
kill -9 ${pid}

exit 0

