Hi, I'm having problems running rpmbuild from a bash script. The problem occurs when I run the script outside an interactive bash prompt.
The script can be as simple as this: test.sh ------------------------ #!/bin/bash set -x /usr/bin/rpmbuild echo $? ------------------------ If I run ./test.sh or /bin/bash test.sh in an interactive bash prompt, I get a correct error message stating that I need to supply a spec file, and I get an exit status of 1. This is expected. If I run the script from a windows prompt like so: C:\cygwin\bin\bash.exe test.sh, all I get are the echoed commands and 128. According to the bash manual, the 128 status code means it terminated on a signal of 0. I've tried numerous things to get this to work. They include changing permissions on the script and bash itself, specifying the non-symlink'd path to rpmb.exe, and setting up the exact environment that the interactive prompt had. I should also mention that I'm testing this on a Windows Server 2003 setup. I've tried doing the same thing on a Windows XP SP3 setup, and had no problems. I've included the cygcheck.out file, with sensitive data replaced with ****. What could be causing this? Thanks, Matt
cygcheck.out
Description: Binary data
-- 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