Hi, We have developed a client-server application to develop and run an ERP application. The server app runs in Linux and the client app it has been developed in windows with c++, using win32 API. Now I'm trying to run it in Linux with Wine. It works fine except when i have to run some java code, in order to do that i wrote a bash script that works ok when I launch it through the command line, but when I launch it inside my windows app doesn't work. In order to launch it from my windows application I use the _spawnlp function. The return status is -1. There is the code: Code: char str_aux[MAX_PATH+1]; int result = _spawnlp(_P_NOWAIT, "/home/dims/strjava","/home/dims/strjava", str_aux, NULL ); In str_aux I send the parameters that the linux script needs. The script strjava is 'chmod a+x'. In order to find out if the script is launched, the first thing that it does is echo the parameters to a file. It does nothing. Somebody can give a little light to me on the subject? Thanks.
Maybe something like the following works: execl("/home/dims/strjava","strjava",NULL); (on success it should not return) However, i'm not sure how to send the parameters that the linux script needs. (if this fails it might be better to ask this on wine-devel mailing list) Good luck
penna at bb.com.br
2008-Jul-31 11:17 UTC
[Wine] launch linux script from windows application
Hi, I do not know if this can help you, but, for sure, it helps me starting Linux apps inside Wine. wiki.jswindle.com/index.php/Advanced_Wine_User_Information#Running_Linux_software_From_Wine Regards --------------------------------------------------------- Ulisses de Sousa Penna Analista de TI - Banco do Brasil Fone: +55-61-3310-6320 ---------------------------------------------------------
Hi. I change the "ls" by a "zcat" and the same thing, it doesn't work. I also read the link in the post by Penna. I have wine 1.0 running in Ubuntu 8.04 No longer I know that to change so that it works. Regards
cmarin wrote:> Hi, > > Tthis is not problem, also I tried with "-c" > > Regardsbugs.winehq.org/show_bug.cgi?id=14541 might have something to do with it.
Apparently Analagous Threads
- windows programms starting linux programms
- Link Wine application to open Linux Application
- Launch Linux version of Firefox from Lotus Notes 7?
- Install Wine's fake-windows directory in different place
- Could not load 'SOUND.DLL' required by 'sierrawh', error=2