Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Reply-To: From: "Ross Boulet" To: Cc: "'Christopher Spears'" Subject: RE: problems with script Date: Tue, 13 Apr 2004 17:12:27 -0500 Message-ID: <000101c421a4$6cb60d80$6601a8c0@RossLap> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/