I sent him some information on using iHook to do the notification. The only thing that iHook does that I don't like is that it puts an input box on the page with an OK button. You don't have to put anything in the box, but it is there. Not sure how to get that off in iHook.<br>
<br>The advantage to using iHook is that if you are already using it for login/logout hooks you don't have to add anything more, just drop a new script.<br clear="all"><br>Steve Wood<br>Director of IT<br><a href="mailto:swood@integer.com">swood@integer.com</a> <br>
<br>The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201 <br>T 214.758.6813 | F 214.758.6901 | C 940.312.2475 <br>
<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 9:53 AM, Ryan Manly <span dir="ltr"><<a href="mailto:ryan.manly@gmail.com">ryan.manly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>What did you end up doing? I like looking at other's scripts. Gives me fun ideas. :D</div><div class="im"><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><div class="gmail_quote"><div class="im">On Thu, Nov 5, 2009 at 10:44 AM, Thomas Larkin <span dir="ltr"><<a href="mailto:tlarki@kckps.org" target="_blank">tlarki@kckps.org</a>></span> wrote:<br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
<div>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">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't seem to quite make the connection.</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">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: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">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: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">#!/bin/bash</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">#test jamf display message command</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">selection=</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">/usr/sbin/jamf displayMessage -message "testing"</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">until [ "$selection" = "button returned: OK" ] ; do</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">case $selection in</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">"button returned:OK" ) /bin/echo "the test is over" ;;</font> </p>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3"> esac</font> </p>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Lucida Grande" size="3">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></div></div><div class="im">_______________________________________________<br>
Casper mailing list<br>
<a href="mailto:Casper@list.jamfsoftware.com" target="_blank">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></div></blockquote></div><br>
<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>