#!/bin/bash rm -rf /pipeline/input/* /pipeline/output/* python /pipeline/src/adm.py exit_code=$? pipeline=/pipeline/output/pipeline.log if test -f "$pipeline"; then echo "=====pipeline.log====" > /work/user-file.txt cat /pipeline/output/pipeline.log >> /work/user-file.txt fi timefile=/pipeline/output/timestamps.txt if test -f "$timefile"; then echo "$timefile exist" mv /pipeline/output/timestamps.txt /work/timestamps.txt fi mv /pipeline/output/msg.txt /work/messages.txt echo finish csst-msc-l1-ooc-adm. exit $exit_code