delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/15/20:57:29

MIME-Version: 1.0
Subject: Simple cygwin script doesn't work with Windows schedular/Command prompt
Date: Tue, 15 Nov 2005 17:58:11 -0800
Message-ID: <92E67798C43ECE4691CCEE09662D26980A0ACFE2@scsmsx402.amr.corp.intel.com>
From: "Pandey, Sunil K" <sunil DOT k DOT pandey AT intel DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id jAG1vSCB018153

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

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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019