Commit 9ae99267 authored by Tobias Bjerg's avatar Tobias Bjerg
Browse files

START script: FTP + parameter

parent 36c1a7cc
#!/bin/bash
BIN_DIR=./bin/
LOG_DIR=./usr/log/
DAT_DIR=./usr/data/
USR_DIR=/home/odaq/Data_FTP
LOG_DIR=$USR_DIR/log/
DAT_DIR=$USR_DIR/data/
PAR_DIR=./usr/par/parameters_
mounted=$(cat /etc/mtab | grep $USR_DIR)
if [ -z "$mounted" ]; then
mount $USR_DIR
fi
mkdir -p $LOG_DIR
mkdir -p $DAT_DIR
$BIN_DIR/OBSDAQ_Logger 2> $LOG_DIR/OBSDAQ.log | tee $DAT_DIR/OBSDAQ.dat | $BIN_DIR/Stream_Reader > $DAT_DIR/OBSDAQ_FILTER.dat
$BIN_DIR/OBSDAQ_Logger $PAR_DIR$1\.par 2> $LOG_DIR/OBSDAQ_$1.log | tee $DAT_DIR/OBSDAQ_$1.dat | $BIN_DIR/Stream_Reader > $DAT_DIR/OBSDAQ_FILTER_$1.dat
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment