Problem with bash script running under NT AUTHORITY\SYSTEM

Almo almo2001@yahoo.com
Wed Dec 2 22:39:00 GMT 2009



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



More information about the Cygwin mailing list