<html>
  <head>
    <style type="text/css">
      <!--
        body { line-height: normal; margin-top: 4px; font-variant: normal; margin-left: 4px; margin-right: 4px; margin-bottom: 1px }
        p { margin-top: 0; margin-bottom: 0 }
      -->
    </style>
    
  </head>
  <body>
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">So&#44; I am trying to run some automation with a bit of end user interaction. &nbsp;If I use the jamf displayMessage binary to display a message it will return the output back into terminal&#44; but I can&#39;t seem to quite make the connection.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">Basically I want to run the command along with other commands and then the user clicks on the OK button it will trigger the last or final command of the policy.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">Here is what I got&#44; proof of concept wise&#44; but it is very very broken. &nbsp;Anyone else got any ideas&#63;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">&#35;&#33;/bin/bash</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">&#35;test jamf display message command</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">selection&#61;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">/usr/sbin/jamf displayMessage -message &quot;testing&quot;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">until &#91; &quot;&#36;selection&quot; &#61; &quot;button returned: OK&quot; &#93; &#59; do</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">case &#36;selection in</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">&quot;button returned:OK&quot; &#41; /bin/echo &quot;the test is over&quot; &#59;&#59;</font>    </p>
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">&nbsp;&nbsp;&nbsp;esac</font>    </p>
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">done</font>
    </p>
  <br>___________________________<BR>Thomas&nbsp;Larkin<BR>TIS&nbsp;Department<BR>KCKPS&nbsp;USD500<BR><a href="mailto:tlarki@kckps.org">tlarki@kckps.org</a><BR>blackberry:&nbsp;&nbsp;913-449-7589<BR>office:&nbsp;&nbsp;913-627-0351<BR>chown&nbsp;-R&nbsp;us&nbsp;/.base<BR><BR><BR><BR><br><br></body>
</html>