#!/bin/bash rm -rf /pipeline/input/* /pipeline/output/* # obsid 50100000001 - 50100000002 obsid=$1 python /pipeline/src/run.py $obsid exit_code=$? timefile=/pipeline/output/timestamps.txt if test -f "$timefile"; then echo "$timefile exist" mv /pipeline/output/timestamps.txt /work/timestamps.txt fi if [ $exit_code -eq 0 ]; then echo "send message $obsid to hstdm-l2." send-message $obsid fi echo finish hstdm. exit $exit_code