I\'d like to kill a process/script with a simple command using. At the moment I do the following
ps -ef | grep myscriptname kill 123456
But
An alternative is piping to the xargs command:
xargs
ps -ef | grep myscriptname | xargs kill
http://man7.org/linux/man-pages/man1/xargs.1.html