title: Check if your python code is running in the background on EC2
body: <p>I ran a python code on EC2 ubutuntu server, and then closed my laptop, so the ssh into my EC2 stopped. I want to check now if the python code has finished running on the cluster.<br>
  So I ssh-ed into the cluster and typed the below command: I got the following output.<br>
  Does this mean that the code has finished running?</p>
  
  <pre><code>ubuntu@ip-xxx-xx-xx-xx:~$ ps ax | grep python3
    760 ?        Ssl    0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
    826 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
  21408 pts/0    S+     0:00 grep --color=auto python3
  
  </code></pre>
  
  <p>I also checked for the actual file:</p>
  
  <pre><code>ubuntu@ip-xxx-xx-xx-xx:~$ ps ax | grep run_file.py 
  21406 pts/0    S+     0:00 grep --color=auto run_file.py
  </code></pre>