<div dir="ltr">Thanks guys, I did manage to get Expect to work with Java and jsch, so that solves my problem for the most part</div><div class="gmail_extra"><br clear="all"><div>Dave Cramer</div>
<br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 12:29 AM, CLIFFORD ILKAY <span dir="ltr"><<a href="mailto:clifford_ilkay-biY6FKoJMRdBDgjK7y7TUQ@public.gmane.org" target="_blank">clifford_ilkay-biY6FKoJMRdBDgjK7y7TUQ@public.gmane.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 11/04/2013 09:18 AM, Dave Cramer wrote:<br>
> I'd like to get various pieces of information such as iptables from a<br>
> machine remotely, using a java program.<br>
><br>
> One option is to use ssh to make calls, but determining when it is<br>
> done is problematic. IE you can wait for a certain amount of time for<br>
> all of the output, but that just seems fraught with problems.<br>
><br>
> Another option is to use NRPE or the like to make calls remotely.<br>
><br>
> Is there something out there that does this already ?<br>
<br>
</div></div>Fabric <<a href="http://docs.fabfile.org/en/1.8/" target="_blank">http://docs.fabfile.org/en/1.8/</a>> does this but it's not Java.<br>
It's Python. It might give you some ideas though.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Regards,<br>
<br>
Clifford Ilkay<br>
<br>
<a href="tel:647-778-8696" value="+16477788696">647-778-8696</a><br>
<br>
Dinamis<br>
<br>
<<a href="http://dinamis.com" target="_blank">http://dinamis.com</a>><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
The Toronto Linux Users Group. Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/Mailing_lists</a><br>
</div></div></blockquote></div><br></div>