File size: 317 Bytes
a86df9f
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/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"