Run shell script (.sh) from wine

Questions about Wine on Linux
Locked
hellykun
Newbie
Newbie
Posts: 4
Joined: Tue Jul 08, 2014 5:57 am

Run shell script (.sh) from wine

Post by hellykun »

Hello Everyone,

I am new to the wine community.
I would like to state that wine is exceptional! Thanks a lot for it.

I need some help with a project I am trying to do.
I have installed Wine over Ubuntu 14.04 and I have installed ffmpeg on my machine (ffmpeg as a linux program).

I have created a .sh file that runs the ffmpeg screen recorder and saves my recording.

I would like to run this .sh file from wine.
Is there any way to do this?

I have tried the following with no luck:

Code: Select all

/bin/sh capture.sh

Code: Select all

Can't recognize 'capture.sh' as an internal or external command, or batch script.

My main application can run .bat and .cmd files.

Thanks for the help in advance.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run shell script (.sh) from wine

Post by spoon0042 »

Have you tried putting the full path to the script?
hellykun
Newbie
Newbie
Posts: 4
Joined: Tue Jul 08, 2014 5:57 am

Re: Run shell script (.sh) from wine

Post by hellykun »

Hello spoon thanks a lot for the reply.
I have tried this with no luck.

Any other suggestion?

I would like to mention that even if I try something simple such as:

/bin/sh gedit

Does not work either.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run shell script (.sh) from wine

Post by spoon0042 »

hm. Well I'm just going by what's in the faq I don't think I've ever had to do that myself.

7.4. How do I launch native applications from a Windows application?
jhansonxi
Level 2
Level 2
Posts: 31
Joined: Sun Aug 09, 2009 3:12 pm

Re: Run shell script (.sh) from wine

Post by jhansonxi »

For anyone else trying this, note that it currently doesn't work with "wine". You have to use "cmd":
https://bugs.winehq.org/show_bug.cgi?id=34730
Locked