groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Di Tommaso <paolo.ditomm...@gmail.com>
Subject Re: Cannot execute shell scripts/command separated by ";" with execute() method
Date Tue, 17 Oct 2017 15:07:50 GMT
Do

cmdArgs = ["bash", "-c", "/opt/test.sh; sqlplus username" ];
cmdArgs.execute(env, workDir);

p

On Tue, Oct 17, 2017 at 4:49 PM, cortez21 <cortez21@wp.pl> wrote:

> Hi All,
>
>  Maybe you can help me with issue I have with executing linux command
> separated by ";".
> I am using execute function but got error:
>
>  No such file or directory
>
> but file exist.
>
> Code I am executing:
>
> cmdArgs = ["/opt/test.sh; sqlplus username"];
> cmdArgs.execute(env, workDir);
>
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>

Mime
View raw message