<div dir="ltr">



















<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>Hello all, <br>
<br>
I’m assigning some commands to a Gate macro via bash scripts. In this way,
within my bash script, I can declare a variable called “visCommand” that will
control whether visualization is called by the Gate macro or not: <br>
<br>
<i>within bash script ----------------------------<span></span></i></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span><br>
if $vis ; then <span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>               
visCommand=’/control/execute mac/vis.mac’ <span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>else <span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>               
visCommand=’/vis/disable’<span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>fi <br>
---------------------------------------------------------<span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0in 0in 12pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>Then just
calling {visCommand} in my Gate macro calls the appropriate command. This works
fine for Gate commands that have enabling or disabling, but I would like to
accomplish a similar task. Namely calling for a certain number of primaries per
run if a non-zero argument is given for number of primaries. However, this is
not a matter of disabling anything, so I’m wondering whether Gate has the
equivalent of a “pass” command. <span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><i><span>Within bash script once more
----------------------------------<span></span></span></i></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><i><span><span> </span></span></i></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>If [ $primaries > 0]; then <span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>               
activityCommand=’/gate/application/setNumberOfPrimariesPerRun
{primariesPerRun}’<span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>else<span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>               
activityCommand=<b><u>SOME GATE COMMAND THAT TELLS GATE TO DO NOTHING<span></span></u></b></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>fi<span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>If you don’t understand the bash
scripting, that’s okay. In this context, I just need a Gate command that tells Gate
to disregard this line in the macro. I’ve tried to just insert a comment, but
GATE throws an error because it can’t find the command. I’m not sure whether
this would be a bash nuance though – perhaps something such as
activityCommand=’#/this_is_a_gate_comment’ is somehow illegal.<span></span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span>In any case, I appreciate any help! And
if you’re curious about calling Gate from bash scripts, let me know in an
email! <br>
<br>
Best, <br>
<br>
Chris<span></span></span></p>





</div>