Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ps -fu cvsuser
- kill where STIME = Oct30
- ps h -u cvsuser -o pid,start # h - no header, only output pid and start
- | grep -v ':' # exclude entries from the last 24 hours
- | egrep -o '^ *[0-9]+' # get the pid (handling possible leading space)
- | xargs -i echo kill "{}" # pretend to kill - take out the echo if you're happy
- ps h -u csvuser -o pid,lstart | grep 'May 29' | sed 's/^ +//' |
- cut -d ' ' -f 1 | xargs -n 1 kill
- 16324 Thu May 29 04:02:06 2008
- 22144 Tue Jul 22 04:02:05 2008
- 11315 Wed Oct 8 04:02:00 2008
- 16324 Thu May 29 04:02:06 2008
- 16324
Add Comment
Please, Sign In to add comment