Skip to content

Instantly share code, notes, and snippets.

@jitsejan
Created May 28, 2018 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jitsejan/606bd4e43dc559998b2609af140a3d7a to your computer and use it in GitHub Desktop.
Save jitsejan/606bd4e43dc559998b2609af140a3d7a to your computer and use it in GitHub Desktop.
Loop through the years, start a screen and call the Python script.
for ((i=1998;i<=2019;i++));
do
screen -dmS $i bash -c 'source activate my-env; python retrieval.py '$i'; exec bash'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment