# Find the pids of all python processes on your system. pgrep python
# Find the pids of processes with 'test.py' as an argument, like 'python test.py' pgrep -f test.py
# find out how many R sessions you have open pgrep R | wc -l