How to invoice linux shell from wine bottle

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
aplcomp
Level 1
Level 1
Posts: 5
Joined: Sun Jun 15, 2008 7:31 am

How to invoice linux shell from wine bottle

Post by aplcomp »

We have installed successfully a large financial application on linux by using wine 1 rc. It is written in C++. We need to invoke a php gtk application from within compiled c++ application, and it fails to execute in wine.

Q: is it possible to send a call to host linux system, in order to run the php gtk process atop host Linux os?
In other words, we's like to call linux php cli, instead of windows "php-win.exe", by using C++ system call.

thanks, martti
Marcel W. Wysocki

How to invoice linux shell from wine bottle

Post by Marcel W. Wysocki »

On Sun, 15 Jun 2008 09:18:41 -0500
"aplcomp" <[email protected]> wrote:
We have installed successfully a large financial application on linux by using wine 1 rc. It is written in C++. We need to invoke a php gtk application from within compiled c++ application, and it fails to execute in wine.

Q: is it possible to send a call to host linux system, in order to run the php gtk process atop host Linux os?
In other words, we's like to call linux php cli, instead of windows "php-win.exe", by using C++ system call.

thanks, martti
you should be able to run any unix command from within wine


--
Marcel W. Wysocki <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
Cladan
Level 1
Level 1
Posts: 8
Joined: Thu May 01, 2008 2:28 am

Post by Cladan »

not sure if I understand the question fully but I have a windows application running under wine that needs to launch/start a linux application, what I did was make a script and saved it as launch.exe

in launch.exe I simply have the

#!/bin/bash
/usr/bin/linuxapplication

and so my windows program under wine starts launch.exe which under unix start my linuxapplication.

... hope this helps
aplcomp
Level 1
Level 1
Posts: 5
Joined: Sun Jun 15, 2008 7:31 am

Post by aplcomp »

Yes, it works as you instructed!

Thanks a lot.

I believe this is an important facility: to invoke linux host shell commands
from an windows application.
Would it be worth included in Faq list?
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

aplcomp wrote: Would it be worth included in Faq list?
It already is: http://wiki.winehq.org/FAQ#head-68d921c ... 58d76ff51f .
Locked