I want to kill a process and I get its id with:
pgrep -f \"python myscript.py\"
I would like to call
kill -s SIGINT
It's generally most convenient to use xargs to pass data from a pipe as arguments to a command that doesn't read data from stdin themselves:
xargs
stdin
pgrep -f "python myscript.py" | xargs kill -s SIGINT