What's wrong with the good 'ol ps -aux to find your process and then kill it with kill?
Or have you tried using top? I do believe it has options to kill processes you see in real time running.
Or are you trying to pipe two commands together or write a program? Your question isn't very detailed in what your trying to ask.