delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.1 required=5.0 tests=AWL,BAYES_00,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <26617812.post@talk.nabble.com> |
Date: | Wed, 2 Dec 2009 14:39:16 -0800 (PST) |
From: | Almo <almo2001 AT yahoo DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem with bash script running under NT AUTHORITY\SYSTEM |
In-Reply-To: | <4B16EE8D.3070905@gmail.com> |
MIME-Version: | 1.0 |
References: | <26617039 DOT post AT talk DOT nabble DOT com> <4B16EE8D DOT 3070905 AT gmail DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Dave Korn-6 wrote: > > Almo wrote: > >> echo "/usr/bin/gzip -f ./$1.sql 2>> error.log" >> error.log >> usr/bin/gzip -f ./$1.sql 2>> error.log >> >> The output I get is: >> >> hyperquest_v2.sql >> /usr/bin/gzip -f ./hyperquest_v2.sql 2>> error.log >> usr/bin/gzip: No such file or directory > > It's not really as simple as the missing leading slash on the second > line, > is it? > > cheers, > DaveK > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > Regarding Moss's suggestion, I did an echo `pwd` in there, and it IS in the directory I think it is. I do an explicit cd command to make sure of that. The missing slash is a typo in the message, sorry about that. I've copied gzip.exe into my working directory, and I refer to it as ./gzip. It has stopped telling me the file is missing. However, it still doesn't zip anything. But it doesn't output to error.log, and it doesn't get to the next command, either. I've tried removing the existing .gz files in case it was a permission issue, but it still doesn't produce a .gz file. I've tried running the script again logged in as me, and it works fine. So I don't think there are any majorly silly typos left. -- View this message in context: http://old.nabble.com/Problem-with-bash-script-running-under-NT-AUTHORITY%5CSYSTEM-tp26617039p26617812.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |