#!/bin/bash
echo "hello shell"
./main &
pid=$(ps -ef | grep main |grep -v grep | awk '{print $2}')
echo $pid
top -H -p $pid
echo "hello shell"
./main &
pid=$(ps -ef | grep main |grep -v grep | awk '{print $2}')
echo $pid
top -H -p $pid