<div>What did you end up doing? I like looking at other&#39;s scripts. Gives me fun ideas. :D</div><br clear="all">Ryan M. Manly<br>Mac OS X Expert<br>Glenbrook High Schools<br>1835 Landwehr Rd.<br>Glenview, IL 60026<br>(847) 486-4948<br>

<br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 10:44 AM, Thomas Larkin <span dir="ltr">&lt;<a href="mailto:tlarki@kckps.org">tlarki@kckps.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
    
  
  <div>
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">So, I am trying to run some automation with a bit of end user interaction.  If I use the jamf displayMessage binary to display a message it will return the output back into terminal, 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, proof of concept wise, but it is very very broken.  Anyone else got any ideas?</font>    </p>
<br>      
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">#!/bin/bash</font>    </p>
<br>      
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">#test jamf display message command</font>    </p>
<br>      
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">selection=</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 [ &quot;$selection&quot; = &quot;button returned: OK&quot; ] ; do</font>    </p>
<br>      
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">case $selection in</font>    </p>
<br>      
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">&quot;button returned:OK&quot; ) /bin/echo &quot;the test is over&quot; ;;</font>    </p>
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">   esac</font>    </p>
    <p style="margin-bottom:0;margin-top:0">
      <font size="3" face="Lucida Grande">done</font>
    </p>
  <br>___________________________<br>Thomas Larkin<br>TIS Department<br>KCKPS USD500<br><a href="mailto:tlarki@kckps.org" target="_blank">tlarki@kckps.org</a><br>blackberry:  913-449-7589<br>office:  913-627-0351<br>chown -R us /.base<br>
<br><br><br><br><br></div>

<br>_______________________________________________<br>
Casper mailing list<br>
<a href="mailto:Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a><br>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>
<br></blockquote></div><br>