delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Reply-To: | <cygwin AT cygwin DOT com> |
From: | "Ross Boulet" <ross AT rossb DOT com> |
To: | <cygwin AT cygwin DOT com> |
Cc: | "'Christopher Spears'" <cspears2002 AT yahoo DOT com> |
Subject: | RE: problems with script |
Date: | Tue, 13 Apr 2004 17:12:27 -0500 |
Message-ID: | <000101c421a4$6cb60d80$6601a8c0@RossLap> |
MIME-Version: | 1.0 |
In-Reply-To: | <20040413212742.66409.qmail@web12402.mail.yahoo.com> |
X-IsSubscribed: | yes |
> -----Original Message----- > From: cygwin-owner On Behalf Of Christopher Spears > [ ... ] > > > > > > #get argument name > > > set dest = $argv[1] [ ... ] > > > following command line: > > > (date; du ~) | ./ppd.txt ~/disk_storage& > > > [ ... ] > > I changed the first line to "!/bin/tcsh -x", and then > tried to run the script again. Here are the results: > > set tf = /tmp/ppd.1316 > set dest = /home/Christopher Spears/disk_storage > set: Syntax error > > So it seems the first two lines work...Right? What is stderr? > Looks to me like the "set dest" line is choking because you have a space in your home directory name. Try using double quotes such as: set dest = "$argv[1]" and again anywhere $dest is used. As an alternative, change your home directory name to not have a space and modify /etc/passwd accordingly. -- 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 |