Hello, I've come up with a command which will list all the background processes running in my current shell and am trying to run it from a shell script but am experiencing some difficulty. The script looks as follows: Code: #! /bin/sh jobs -l | grep -o '[0-9]* ' | xargs -E eofstr kill -9 If I run this line directly in my terminal it works fine but if I try to execute from the script it doesn't seem to do anything. Any ideas? Thanks.