Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  08 May 2023, Alexey Kalinin, Forum, Scrript in sequencer 
    Reply  08 May 2023, Stefan Ritt, Forum, Scrript in sequencer 
       Reply  09 May 2023, Alexey Kalinin, Forum, Scrript in sequencer 
          Reply  10 May 2023, Stefan Ritt, Forum, Scrript in sequencer 
Message ID: 2503     Entry time: 08 May 2023     Reply to this: 2504
Author: Alexey Kalinin 
Topic: Forum 
Subject: Scrript in sequencer 
Hello,

I tried different ways to pass parameters to bash script, but there are seems to 
be empty, what could be the problem?

We have seuqencer like

ODBGET "/Runinfo/runnumber", firstrun
LOOP n,10
#changing HV
TRANSITION start
WAIT seconds,300
TRANSITION stop
ENDLOOP
ODBGET "/Runinfo/runnumber", lastrun
SCRIPT /.../script.sh ,$firstrun ,$lastrun

and script.sh like
firstrun=$1
lastrun=$2

Thanks. Alexey.
ELOG V3.1.4-2e1708b5