Yes the remote hosts are running ntpd. I have a basic script that periodically pings each host and let's me know that everybody is up and running. Sometimes ntp on some of the machines runs astray and I wanted to have that script also tell me the time and date on each machine.<br>
<br><div class="gmail_quote">2008/7/5 Andy Lester <<a href="mailto:andy@petdance.com">andy@petdance.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
On Jul 5, 2008, at 1:11 PM, Richard Reina wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Does anyone know how one might go about getting the date and time of a remote host (on my LAN) from within a perl script assuming that I know the remote machine's ip address?<br>
</blockquote>
<br>
<br></div>
The "within a perl script" isn't the important part. It's knowing how the remote host is going to tell you what time it is. Is it running a time service?<br>
<br>
xoa<br>
<br>
--<br>
Andy Lester => <a href="mailto:andy@petdance.com" target="_blank">andy@petdance.com</a> => <a href="http://www.petdance.com" target="_blank">www.petdance.com</a> => AIM:petdance<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org" target="_blank">SanFrancisco-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
</blockquote></div><br>