#!/bin/bash -p

# Get status from all hosts (grep for python)

logfile="/tmp/rcd.log"
./run_cmd_distributed "ps -eo pid,%cpu,%mem,bsdtime,args | grep -v grep | grep -i python" | tee $logfile
echo -n "Num running jobs = "
grep -i python $logfile | wc -l 
