#!/bin/bash POSTGRES_USER=scalebox POSTGRES_HOST=localhost POSTGRES_DB=scalebox PGPORT=5432 job_id=$1 for m in {10160000000..10160000001}; do for n in 06 07 08 09 11 12 13 14 15 16 17 18 19 20 22 23 24 25 ; do echo $m $n msg=$m-$n docker exec -t database psql -U ${POSTGRES_USER} -h ${POSTGRES_HOST} -d ${POSTGRES_DB} -p ${PGPORT}\ -c "INSERT INTO t_task(job,key_message) VALUES(${job_id},'${msg}')" done done