delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | "Tony B" <tagb61 AT yahoo DOT co DOT uk> |
Subject: | run a tcsh script file with arguments from windows |
Date: | Tue, 19 Jun 2007 17:04:15 +0100 |
Lines: | 17 |
Message-ID: | <f58ups$hu7$1@sea.gmane.org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Hi, I have written small csh script file which takes a filename as an argument, modifies the file, and writes it back over the input file. Now I want to write a small dos command batch file to call the cshell, and execute the script file, but I'm stuck on how to pass the filename to the script itself. If I execute tcsh -c scriptfile inputfile tcsh uses inputfile as an argument to itself, not as an argument to the script. So if I run this command, I get a useage error from the script as it expects a filename ? -- 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 |