[greenstone-users] calling exportcol.pl in a Java program

From Chaitra
DateFri, 19 May 2006 15:53:34 +0530
Subject [greenstone-users] calling exportcol.pl in a Java program
In-Reply-To (004b01c67ac0$ce9ec920$0101a8c0-HP)
Hi ,
Greetings to all Greenstone users!

My program requires me to invoke the "write to CD image" option from
a Java program. I tried using the "setup.bat" and "perl -S
exprtcol.pl......" in 2 separate Runtime() objects in Java. The problem
is that the setup.bat file exits from the thread after execution and the
next command doesn't execute at all. This problem occurs even if I write
a batch script where i call setup.bat and then run the exportcol.pl
command. As an alternative option I tried the following command:
C:> path_to_gsdirbinwindowsperlbinperl -S
path_to_gsdirbinscriptexportcol.pl -nonetscape collect_name
This shows a GSDLOS not set error. Do we need to set this variable each
time we run the perl command?
I wanted to know if I can use a single line command that can setup the
greenstone environment as well as run the exportcol.pl script.

Thanks in advance

Regards,
Chaitra