I need advice:
How to verify which is the last scan_sys.sh process that run in my linux or solaris ?
my target is to kill all scan_sys.sh process , except the latest scan_sys.sh ( the last execute /usr/scan_sys.sh script )
ps -ef | grep scan_sys.sh
.
root 367 1 0 Nov 08 ? 0:21 /usr/scan_sys.sh
root 27517 27515 0 17:27:18 ? 0:01 /usr/scan_sys.sh
root 18939 367 0 Nov 15 ? 0:00 /usr/scan_sys.sh
root 18940 18939 0 Nov 15 ? 0:01 /usr/scan_sys.sh
root 27515 367 0 17:27:18 ? 0:00 /usr/scan_sys.sh