quot;,"NEW_VAL");
>exec.execute(new CommandLine(environmentSript), myEnvVars);
>String environment = baos.toString().trim();
>assertTrue(environment.contains("NEW_VAR"));
> }
>
> and it works
>
> Cheers,
>
> Siegfried Goeschl
>
","NEW_VAL");
Regards,
Mohamed Sanaulla.
>
> On 9/5/10 10:09 PM, Mohammed Sanaulla wrote:
>
>> I was able to execute the command. I got the environment variable map from
>> the EnvironmentUtils and then added a new entry for TERM and then passed
>> this M
I was able to execute the command. I got the environment variable map from
the EnvironmentUtils and then added a new entry for TERM and then passed
this Map along with execute() method of the DefaultExecutor.
-
Mohamed Sanaulla
On 6 September 2010 00:43, Mohammed Sanaulla wrote:
> Hi all,
Hi all,
I have recently started to use Exec. I was trying to execute "proz" command
(Command for Prozilla) on Linux using the CommandLine and DefaultExecutor as
an asynchronous process. When ever I try to run the program I get the
following error: Error opening terminal: unknown.
And the code term