X-Spam-Check-By: sourceware.org Message-ID: Date: Fri, 27 Jan 2006 11:55:16 -0700 From: Stewart Midwinter To: cygwin AT cygwin DOT com Subject: csh script hangs only on cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k0RItShf010667 I've been able to isolate a problem with csh on cygwin running on Windows Server 2003 on a Xeon. The following script hangs after a certain period of time ranging from a few minutes to a few hours. --------------- #!/bin/csh while (1) set year = `date +%y` set month = `date +%m` set day = `date +%d` set hour = `date +%H` set minute = `date +%M` set second = `date +%S` set stamp = "$year$month$day $hour : $minute : $second" echo $stamp sleep 2 end ------------ The equivalent script in bash doesn't hang even after a day or more. ------------- #!/bin/bash while [ 1 ]; do echo $(date +%Y%m%d.%H%M%S) sleep 2 done ------------- Has anyone else had problems with csh scripts on cygwin? Yes, I know that some people don't recommend using csh (see "Csh programming considered harmful", http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/), but I'm stuck with a whole lot of csh scripts and don't have time to port them all at the moment. thanks, -- Stewart Midwinter stewart AT midwinter DOT ca stewart DOT midwinter AT gmail DOT com Skype, GoogleTalk, iChatAV, MSN, Yahoo: midtoad AIM:midtoad1 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/