S
sburg
I am trying to convert the following line from a makefile into perl:
.. shell_script_to_get_env_data && java Main
When run on a Unix command line the
.. shell_script_to_get_env_data
sets some env variables.
Then some objects instantiated from Main.java need to use
those env variables.
The following perl lines don't work:
system(". shell_script_to_get_env_data");
system("java Main");
Main fails because its shell doesn't have the env variables set.
How do I put these commands together in Perl so that the environment
variables set up by the shell script are accessable by the Java
program?
Thanks,
Shawna
.. shell_script_to_get_env_data && java Main
When run on a Unix command line the
.. shell_script_to_get_env_data
sets some env variables.
Then some objects instantiated from Main.java need to use
those env variables.
The following perl lines don't work:
system(". shell_script_to_get_env_data");
system("java Main");
Main fails because its shell doesn't have the env variables set.
How do I put these commands together in Perl so that the environment
variables set up by the shell script are accessable by the Java
program?
Thanks,
Shawna