Start bash within wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
div
Newbie
Newbie
Posts: 3
Joined: Fri Sep 02, 2011 4:01 pm

Start bash within wine

Post by div »

Hello and good evening :wink:

Is there a possibility to execute e.g. a bash command/Linux program out of program running under wine? For instance, I'd like to execute a bash command from the window command line ("wine cmd").

Thanks a lot and have a nice weekend
div
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

you can try to use the winebrowser.exe program thats already in Wine to do this. I think it was originally developed to associate with URLs so they would open in the native browser, but I've been able to associate file types or run from cmd just fine and launch almost anything.
div
Newbie
Newbie
Posts: 3
Joined: Fri Sep 02, 2011 4:01 pm

Post by div »

Okay, that sounds good :D! But how do you associate file types and run almost everything??? I have no idea how to do that...

(Well, alternatively I just had two extremly ugly ideas: one could install an extension to the browser (say firefox) which then launches the bash... Or one can pass information in files which are repeatedly scaned by a linux program that then executes the bash... But you way sounds much better!!!)

Cheers!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Start bash within wine

Post by vitamin »

div wrote:Is there a possibility to execute e.g. a bash command/Linux program out of program running under wine?
Sort of. You have to execute bash give it whatever commands you want it to run via "-c" switch. For example "/bin/bash -c 'ls -la /' ".

For details see: http://wiki.winehq.org/FAQ#head-831a837 ... aab001a347
div
Newbie
Newbie
Posts: 3
Joined: Fri Sep 02, 2011 4:01 pm

Post by div »

Perfect, that's exactly what I was looking for :D ! Thank you very much!!!
Locked