title: How to run the sequence of python scripts one after another in a loop?
body: <p>How to run sequentially 20 - 30 scripts one-by-one and after the last one is executed - run the first one again and run this iteration on a hourly basis? </p>
  
  <p>I tried to implement it by using crontab, but it's a bulky way. I want to guarantee that only one script for every moment is running. The time of execution for each script is about 1 minute.</p>
  
  <p>I wrote a bash script for such a goal and think to run it every hour by using cron:</p>
  
  <pre><code>if ps ax | grep $0 | grep -v $$ | grep bash | grep -v grep
  then
      echo "The script is already running."
      exit 1
  else
      python script1.py
      python script2.py
      python script3.py
      ...
      python script30.py
  fi
  </code></pre>
  
  <p>but is it a good way?</p>