[OFBiz] Users - a java problem, someone help me?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[OFBiz] Users - a java problem, someone help me?

Hao Jiang-4
Hello, please forgive me since it's not directly related to ofbiz, but a
java problem when I work on ofbiz

I want to call a linux script from ofbiz system, it's simple and I did
this

String cmd = "./a.sh -in a=a -out a.txt";
Process p = Runtime.getRuntime().exec(cmd);

now I want the command like
./a.sh -in "a=a" -out a.txt

this time java returns error message, although it runs fine when use
linux terminal

Can someone help me?

Thanks

Hao


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - a java problem, someone help me?

Charles Johnson-2
Try

String cmd = "./a.sh -in \"a=a\" -out a.txt";



Hao Jiang wrote:

>Hello, please forgive me since it's not directly related to ofbiz, but a
>java problem when I work on ofbiz
>
>I want to call a linux script from ofbiz system, it's simple and I did
>this
>
>String cmd = "./a.sh -in a=a -out a.txt";
>Process p = Runtime.getRuntime().exec(cmd);
>
>now I want the command like
>./a.sh -in "a=a" -out a.txt
>
>this time java returns error message, although it runs fine when use
>linux terminal
>
>Can someone help me?
>
>Thanks
>
>Hao
>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users