Skip to content

Scripts

Rasmus Rudling edited this page Nov 10, 2021 · 19 revisions

How to run scripts

  1. SSH into the server: ssh ais@bornholm.sys.armada.nu
  2. Activate the virtual environment: . ais_venv/bin/activate
  3. Go into ais directory: cd ais
  4. Run the script from shell a. Go into Python shell: python manage.py shell b. Copy-paste your desired script and press enter (you may have to do this line by line).
  5. Run the script from a file a. python ~/ais/manage.py shell < .py

If you get SyntaxError: multiple statements found while compiling a single statement

echo "set enable-bracketed-paste off" >> ~/.inputrc
Clone this wiki locally