delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
From: | ejfried AT ca DOT sandia DOT gov (friedman_hill ernest j) |
Message-Id: | <200404081912.MAA30065@ca.sandia.gov> |
Subject: | Re: writing csh scripts with cygwin |
In-Reply-To: | <20040408190219.19916.qmail@web12405.mail.yahoo.com> from Christopher Spears at "Apr 8, 2004 12:02:19 pm" |
To: | Christopher Spears <cspears2002 AT yahoo DOT com> |
Date: | Thu, 8 Apr 2004 12:12:22 -0700 (PDT) |
CC: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
I think Christopher Spears wrote: > #csh that gives system status > > set d = `date` > echo "Today's date: $d[2-3] $d[6]" > echo "Current time: $d[4]" > echo Number of users: `who | wc -l` > echo Current disk storage: ` du -s .` > You need to include a #!/bin/tcsh line at the top of the script to tell Cygwin that this is a tcsh script, not a bash script. --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 ejfried AT ca DOT sandia DOT gov Livermore, CA 94550 http://herzberg.ca.sandia.gov -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |