YHGW/run_scripts/get_GW_runtime.sh

4 lines
228 B
Bash

#!/bin/bash
echo -e "*******************\t"`date`"\t****************" >>/usr/local/gateway/yunhorn-gw//logs/time_run.log
ps -eo pid,tty,user,comm,lstart,etime | grep GW | grep -v get >>/usr/local/gateway/yunhorn-gw/time_run.log