mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 06:02:41 +02:00
18 lines
401 B
Bash
18 lines
401 B
Bash
#!/bin/bash
|
|
|
|
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
|
|
case ${H} in
|
|
'sf-daq-4')
|
|
coreAssociated="33,34,35"
|
|
config=/gpfs/photonics/swissfel/buffer/config/stream-JF02.json
|
|
;;
|
|
'sf-daq-8')
|
|
coreAssociated="14,15,16"
|
|
config=/gpfs/photonics/swissfel/buffer/config/stream-JF02.daq8.json
|
|
;;
|
|
*)
|
|
coreAssociated="12"
|
|
esac
|
|
|
|
taskset -c ${coreAssociated} /usr/local/bin/sf_stream ${config}
|