Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 376DF108DD for ; Wed, 8 Jan 2014 16:46:24 +0000 (UTC) Received: (qmail 27446 invoked by uid 500); 8 Jan 2014 16:46:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27042 invoked by uid 500); 8 Jan 2014 16:46:14 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 27032 invoked by uid 99); 8 Jan 2014 16:46:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 16:46:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.229 as permitted sender) Received: from [212.85.38.229] (HELO tor.combios.es) (212.85.38.229) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 16:46:07 +0000 Received: from [192.168.245.129] (montserrat.wissensbank.com [212.85.37.175]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id 648C73C0126 for ; Wed, 8 Jan 2014 17:46:11 +0100 (CET) Message-ID: <52CD80BA.9060808@ice-sa.com> Date: Wed, 08 Jan 2014 17:45:46 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How to read "time" from a Tomcat server? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Bradley Rogers wrote: > HI > Is there a command i can issue to get the exact system time that the remote > Tomcat server is using? > > and then is there a command or some way (with applicable admin rights) to > set the remote time? > > the idea is the sync'ing of the different PC's im hoping to use, if there > is some other way used I am grateful to hear it. im setting up a > distributed system thats running in linux. thanks > This is far from being a Tomcat question.. But since this is Linux, check the web for the "ntpd" daemon and/or the "ntpdate" commands. You may also need "hwclock". As for getting/setting the time remotely, you need some access to the server for that. If you have command-line access, "date" is your friend. If not, create a Tomcat webapp using any of the multiple date/time java classes to achieve this. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org