Mime-Version: 1.0 (Apple Message framework v746.2)
In-Reply-To: <92E67798C43ECE4691CCEE09662D26980A0ACFE2@scsmsx402.amr.corp.intel.com>
References: <92E67798C43ECE4691CCEE09662D26980A0ACFE2@scsmsx402.amr.corp.intel.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 <peter@rehley.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@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

