www.delorie.com/archives/browse.cgi | search |
Mime-Version: | 1.0 (Apple Message framework v746.2) |
In-Reply-To: | <92E67798C43ECE4691CCEE09662D26980A0ACFE2@scsmsx402.amr.corp.intel.com> |
References: | <92E67798C43ECE4691CCEE09662D26980A0ACFE2 AT scsmsx402 DOT amr DOT corp DOT intel DOT com> |
Message-Id: | <4B8DB7E4-8466-45B7-99A0-EDAF5901695A@rehley.net> |
From: | Peter Rehley <peter AT rehley DOT net> |
Subject: | Re: Simple cygwin script doesn't work with Windows schedular/Command prompt |
Date: | Tue, 15 Nov 2005 18:59:42 -0800 |
To: | "Cygwin List'" <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Nov 15, 2005, at 5:58 PM, Pandey, Sunil K wrote: > I have a very simple shell script say test.csh > > $cat test.csh > #!/bin/csh > set x = "Some name" > echo $x > /tmp/xyz > > When I ran this script in cygwin shell it works fine. > > $cat /tmp/xyz > Some Name > > However when I try to launch the same script with windows scheduler > via > following command line it doesn't work. > > Scheduler command line > > C:\cygwin\bin\bash.exe -l -e /tmp/test.csh Try using csh instead of bash > > I also tried above command on Windows command prompt still doesn't > work. > > It creates a blank xyz file. Most probably set command is not working. > Not sure how to fix this script. Any help/hack will be much-much > appreciated. > > Thanks. > Sunil > > -- > 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/ > > -- 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 |