title: How to check for Jupyter running notebooks through command line
body: <p>I'm setting up a cluster for running Jupyter notebook on google cloud platform, but need to automate the cluster shutdown process to save money, interrupting the shutdown script if someone is running something.</p>
  
  <p>How can I check if there is any running notebooks using shell script?</p>