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-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 From: "Vikram Shrowty" To: cygwin AT cygwin DOT com Date: Thu, 08 Apr 2004 13:49:29 -0700 Message-Id: <1081457369.31193.184145637@webmail.messagingengine.com> Subject: Re: more csh X-IsSubscribed: yes You are probably missing a newline at the end of the last line. On Thu, 8 Apr 2004 12:35:40 -0700 (PDT), "Christopher Spears" said: > Eureka! #!/bin/tcsh does the trick! > > However, now that csh is reading the script: > > #!/bin/tcsh > > 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 ~` > > I have encountered another problem. Here is the > response: > > Today's date: Apr 8 2004 > Current time: 12:30:44 > Number of users: 0 > > The last line of my script must not have been > executed! How could this be?! > > BTW, I realize that some of my questions may be more > about scripting instead of cygwin. Can anyone > recommend any good forums for shell scripting? I'm > especially interested in forums for beginners. > > -Chris > > ===== > "I'm the last person to pretend that I'm a radio. I'd rather go out and > be a color television set." > -David Bowie > > "Who dares wins" > -British military motto > > "The freak is the norm." - "The Infernal Desire Machines of Dr. Hoffman" > by Angela Carter > > -- > 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/ > -- Vikram Shrowty vikramshrowty AT fastmail DOT fm -- http://www.fastmail.fm - Choose from over 50 domains or use your own -- 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/