I am calling few perl routines from my Java program (in an Unix environment) using Runtime process call. While most get executed normally, I am facing problem with routines that get parameters as output from other routine, ex:
[CODE] ./routine2.pl param1 | ./routine1.pl -directory param2 [/CODE]
When run directly from command line it works well. But when called through my program it behaves randomly sometimes outputting the routine code other times outputting the file content being read by one of the routine. I am not aware of and cannot change the perl routines.