delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/13/05:06:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.5 required=5.0 tests=BAYES_40,DKIM_ADSP_CUSTOM_MED,FORGED_YAHOO_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Raman Ravi <swcritic AT yahoo DOT com>
Subject: Problem with date after date is modified in scripts
Date: Sat, 13 Nov 2010 10:03:55 +0000 (UTC)
Lines: 39
Message-ID: <loom.20101113T105526-546@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi

I have a test harness, on WIndows 2k3, which has 3 sh scripts (the terminal
is using tcsh)

runtests
calls startup.sh
run.sh
shutdown.sh

1. In startup.sh, I have to change the date to 235830 of the current day-
so I call

date $mm${dd}2358.30

This works fine

2. After the test is run using run.sh

3. In shutdown.sh, I set the machine clock back to "normal" by syncing
with a different server, using

net time "\\TMSERVER" /set /yes

Here is the issue:
The windows clock shows the correct time but when I run date in
any shell (newly created or existing)

the date is being returned as though step 3 did not ever happen.

At this point of time, the machine time is 2010-11-13 02:01:00 but
date in a tcsh/bash is reporting it as

Sun Nov 14 03:37:43 PST 2010

WOuld appreciate some help in understanding and more importantly resolving
this issue.

Thanks.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019