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> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4B8DB7E4-8466-45B7-99A0-EDAF5901695A@rehley.net> Content-Transfer-Encoding: 7bit From: Peter Rehley 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'" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 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/