Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I run Linux commands from Wine?

132 views
Skip to first unread message

m_l...@yahoo.com

unread,
Nov 27, 2007, 10:46:45 AM11/27/07
to
I am trying to use Far Manager under Wine.
So far it worked, up to the point that I want to compare two files.
Under Windows, I would use fc.exe, but it's not there.
I could also use diff, but it's not found from under Wine.

Is there a way to execute a Linux command from a Win program under
Wine?

Opening a separate terminal window and type-in + Ctrl-C + CTRL-V is
not an acceptable solution.

Writing (myself) a command-line utility doing this is acceptable, but
tell me what function(s) I can use to achieve the goal.

Cygwin... I would like to avoid installing Cygwin under Wine.

Aggro

unread,
Nov 27, 2007, 11:25:27 AM11/27/07
to
m_l...@yahoo.com wrote:
> I am trying to use Far Manager under Wine.
> So far it worked, up to the point that I want to compare two files.
> Under Windows, I would use fc.exe, but it's not there.
> I could also use diff, but it's not found from under Wine.
>
> Is there a way to execute a Linux command from a Win program under
> Wine?
>
> Opening a separate terminal window and type-in + Ctrl-C + CTRL-V is
> not an acceptable solution.

I don't know about wine, but you could open a separate terminal window
and compare the two files using some Linux command on the drive which
wine uses. Files should be at:

~./wine/drive_c/yourpath/yourfile

But I just noticed that "Starting from October 26th 2007 the unicode
development version of Far Manager 1.80 is distributed with its source
code under the revised BSD license. We hope that with the help of our
community this long awaited project will spring to life.":

http://www.farmanager.com/opensource.php?l=en


So someone could probably make a native Linux port of it.

There are also existing alternatives for it that already work on Linux.
Not sure how good they are as I don't personally use those much:

Take this as an example:
http://en.wikipedia.org/wiki/Midnight_Commander

And see a list of others:
http://en.wikipedia.org/wiki/Comparison_of_file_managers

m_l...@yahoo.com

unread,
Nov 27, 2007, 2:27:37 PM11/27/07
to
On Nov 27, 7:25 pm, Aggro <spammerdr...@yahoo.com> wrote:
> m_l...@yahoo.com wrote:
> > I am trying to use Far Manager under Wine.
> > So far it worked, up to the point that I want to compare two files.
> > Under Windows, I would use fc.exe, but it's not there.
> > I could also use diff, but it's not found from under Wine.
>
> > Is there a way to execute a Linux command from a Win program under
> > Wine?
>
> > Opening a separate terminal window and type-in + Ctrl-C + CTRL-V is
> > not an acceptable solution.
>
> I don't know about wine, but you could open a separate terminal window
> and compare the two files using some Linux command on the drive which
> wine uses. Files should be at:
>
> ~./wine/drive_c/yourpath/yourfile

They are at the z: drive. (That is, in the root file system).

Opening a separate terminal window is not acceptable.
I have to do numerous comparisons in two large directory trees, with
minimal number of keypresses.


m_l...@yahoo.com

unread,
Nov 27, 2007, 3:07:06 PM11/27/07
to
> > > Is there a way to execute a Linux command from a Win program under
> > > Wine?
I have created test.exe

#!/bin/bash
echo test
echo $@
echo 0: $0 1: $1 2: $2

and found out that it DOES send output... to another (!) window.
To the xterm window that has started wine.


Bamm

unread,
Dec 2, 2007, 7:16:05 AM12/2/07
to
You could simply copy fc.exe from your Windows installation to your
Wine installation under the system32 folder. Then from a terminal type
"wine cmd" and from there you can run the fc command. :)
0 new messages