Strange problem running python program from within ant
Hello,
I'm currently trying to port an ant based build to AIX 6.1. The build queries the underlying version control system (Mercurial) for some data, which works fine on other platforms (Linux, Solaris). However, on AIX the hg command fails to load python's md5 module when used in the build, while it works fin in the shell. I could reproduce the problem with a simple test setup, consisting of test.py and ant_test.xml:
test.py:
ant_test.xml:
When I run test.py from the shell, it works fine, but when I run the ant build, it fails:
I currently have no idea how to resolve or even debug this, as AIX is somewhat new to me.
Versions:
AIX 6.1 TL08
Python 2.6.8 installed as RPM package obtained from perzl.org
Java is IBM JDK 7.1
Ant 1.8.4
[SOLVED] Strange problem running python program from within ant
Hi,
turned out that the JVM messes with $LIBPATH. After setting LIBPATH to /opt/freeware/lib (where the openssl libs are located), the python test program as well as hg work fine from within the ANT build.
more run.sh
!/bin/bash
input="data.txt"
while IFS= read -r var
do
startdir="/web/logs"
searchterm=$(echo $var | awk -F'=' '{print $1}')
replaceterm=$(echo $var | awk -F'=' '{print $2}')
find "$startdir" -type f -exec grep -l "$searchterm" {} + |
while read file
do if sed -e... (1 Reply)
Have no idea on what the below error message is:
Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist.
Any help? (3 Replies)
Can someone help me please to write a Python program that support a processing of arithmetic expressions in postfix notation.
Expressions in postfix notation contain the operands on which the operation is performed followed by an operator. For example, 3 4 + is equal to 3 + 4 in the infix... (2 Replies)
Hello,
I am trying to run ant from a shell script a.sh.
a.sh is placed in the /usr/myScripts folder
a.sh looks like
..........
${ANT_HOME}/bin/ant -myBuild.xml
While trying to run a.sh i am getting
/usr/modules/apache.ant_1.7.1 /bin/ant: No such file or directory.
Can anyone tel me... (5 Replies)
I'm trying to run MPI programs on 8 machines, but I get the error
connect to address 127.0.0.1 port 544: Connection refused
Trying krb4 rsh...
connect to address 127.0.0.1 port 544: Connection refused
trying normal rsh (/usr/bin/rsh)
lagrid02: Connection refused
When I run it with a... (8 Replies)
Hi all,
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion.
My problem is sometimes the program takes... (5 Replies)
I wrote a simple program that generates a random word 10,000,000 times.
I wrote it in python, then in C++ and compared the two completion times. The python script was faster! Is that normal? Why would the python script be faster? I was under the impression that C++ was faster. What are some of... (2 Replies)
I have made some code changes in the corresponding java file for date formatting purpose so that it supports upgraded sybase version from 12.6 to 12.7 and have build the code and deployed using the following UNIX commands.
ant build
ant deploy.
"ant build" executes the build.xml which is... (1 Reply)