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 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 Date: Thu, 8 Apr 2004 12:12:22 -0700 (PDT) CC: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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/