mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 04:24:37 +02:00
18 lines
343 B
Bash
18 lines
343 B
Bash
#!/bin/bash
|
|
|
|
if [ $# != 1 ]
|
|
then
|
|
systemctl start JF09-buffer-worker@00
|
|
exit
|
|
fi
|
|
|
|
M=$1
|
|
|
|
coreAssociatedBuffer=(12)
|
|
|
|
initialUDPport=50150
|
|
port=$((${initialUDPport}+10#${M}))
|
|
DETECTOR=JF09T01V01
|
|
|
|
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|