When I execute ps ax command with grep, it' showing a single entry of test.py
test.py was just single print statement submitted like this:
nohup python test.py &
So I'm assuming it didn't take long to run. Should that entry still be there?
$ ps ax | grep test.py
18225 pts/0 S+ 0:00 grep test.py
psis showing thegrepprocess that's filtering thepsoutput fortest.py, not apythonprocess running the thing... – Andy Dalton May 23 '20 at 19:47grep, the other will saypython. See the above suggested link regrep -v grep– Andy Dalton May 23 '20 at 23:14