-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·26 lines (22 loc) · 940 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·26 lines (22 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#SBATCH --mail-type=ALL # mail configuration: NONE, BEGIN, END, FAIL, REQUEUE, ALL
#SBATCH --output=/home/yhuynh/uniswap-simulator/log/%j.out # where to store the output (%j is the JOBID), subdirectory "log" must exist
#SBATCH --error=/home/yhuynh/uniswap-simulator/log/%j.err # where to store error messages
#SBATCH --cpus-per-task=40
#SBATCH --mem=32G
# Exit on errors
set -o errexit
# Send some noteworthy information to the output log
echo "Running on node: $(hostname)"
echo "In directory: $(pwd)"
echo "Starting on: $(date)"
echo "SLURM_JOB_ID: ${SLURM_JOB_ID}"
echo "UpdateInterval in hours: $1"
echo "Filename: $2"
# Binary or script to execute
/home/yhuynh/uniswap-simulator/main -n=$1 -file=$2
# Send more noteworthy information to the output log
echo "Finished at: $(date)"
# End the script with exit code 0
#Test
exit 0