Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-04 Thread Larry Hall (Cygwin)
On 12/04/2009 03:46 AM, Csaba Raduly wrote: On Wed, Dec 2, 2009 at 11:50 PM, Larry Hall (Cygwin) wrote: Remember, SYSTEM is not you. Unless Louis XIV was a Cygwin user, in which case he might have said Le systéme, c'est moi! :-) On Thu, Dec 3, 2009 at 5:02 PM, Almo<> wrote: Ok, it's t

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-04 Thread Csaba Raduly
On Wed, Dec 2, 2009 at 11:50 PM, Larry Hall (Cygwin) wrote: > Remember, SYSTEM is not you. Unless Louis XIV was a Cygwin user, in which case he might have said Le systéme, c'est moi! On Thu, Dec 3, 2009 at 5:02 PM, Almo <> wrote: > > Ok, it's that SYSTEM running through cygwin has no access to

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-03 Thread Larry W. Virden
--- On Wed, 12/2/09, Almo wrote: > From: Almo > Subject: Problem with bash script running under NT AUTHORITY\SYSTEM > To: cygwin@cygwin.com > Date: Wednesday, December 2, 2009, 4:47 PM > > echo "/usr/bin/gzip -f ./$1.sql 2>> error.log" > >

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-03 Thread Almo
Larry Hall (Cygwin) wrote: > > 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

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-02 Thread Larry Hall (Cygwin)
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,

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-02 Thread Almo
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 >

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-02 Thread Dave Korn
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 mis

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-02 Thread Larry Hall (Cygwin)
On 12/02/2009 04:47 PM, Almo wrote: When this is run from NT AUTHORITY\SYSTEM as a scheduled task, I get an error. So I put in some debug output: (I also have to specify where gzip.exe is so that account can find it, hence the "/usr/bin/" part) echo "/usr/bin/gzip -f ./$1.sql 2>> error.log">>

Re: Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-02 Thread Eliot Moss
Almo wrote: Hi! I'm using cygwin and this command in a function works when I'm logged in as me: gzip -f ./$1.sql 2>> error.log so it zips hyperquest_v2.sql as the argument I send it is "hyperquest_v2". When this is run from NT AUTHORITY\SYSTEM as a scheduled task, I get an error. So I put in

Problem with bash script running under NT AUTHORITY\SYSTEM

2009-12-02 Thread Almo
Hi! I'm using cygwin and this command in a function works when I'm logged in as me: gzip -f ./$1.sql 2>> error.log so it zips hyperquest_v2.sql as the argument I send it is "hyperquest_v2". When this is run from NT AUTHORITY\SYSTEM as a scheduled task, I get an error. So I put in some debug ou