#!/bin/bash # Run a script with the secrets in the environment: bash run.sh LOGNAME python train_dm.py ... set -a source /content/secrets.env set +a export PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false name="$1" shift cd /content/dm "$@" > "/content/logs/$name.log" 2>&1 echo "EXIT $?" >> "/content/logs/$name.log"