X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B16EF31.60102@cygwin.com>
Date: Wed, 02 Dec 2009 17:50:25 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Problem with bash script running under NT AUTHORITY\SYSTEM
References: <26617039.post@talk.nabble.com> <4B16EE8D.3070905@gmail.com> <26617812.post@talk.nabble.com>
In-Reply-To: <26617812.post@talk.nabble.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/02/2009 05:39 PM, Almo wrote:
> 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.

Remember, SYSTEM is not you.  It doesn't have your environment or your access
rights.  You need to be very careful and explicit with paths, files, and their
permissions.  Whatever permissions and paths you have in your environment has
to be replicated in some way for things to work like they do when you run them.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

