pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Running an executable on a Unix machine from a Windows machine.

Replies are listed 'Best First'.
Re: Running an executable on a Unix machine from a Windows machine.
by ikegami (Patriarch) on Feb 09, 2010 at 07:18 UTC

    Unix can't execute Windows executables.

    But let's say it's something the unix system could run (e.g. a Perl script). First, you need to transfer the file over to the unix machine by some means (scp, ftp, http, smb, nfs, etc) or mount the Windows drive on the unix machine by some means. Then you'd have to get the unix machine to launch the executable by some means (ssh, http, etc).

    The possibilities are pretty much endless. I'd go with scp to transfer and ssh to execute. What's the problem?

Re: Running an executable on a Unix machine from a Windows machine.
by helgi (Hermit) on Feb 09, 2010 at 13:59 UTC
    I sense an XY question here.
    It might be better to explain more precisely what it is you want to accomplish.


    --
    Regards,
    Helgi Briem
    hbriem AT f-prot DOT com
Re: Running an executable on a Unix machine from a Windows machine.
by jethro (Monsignor) on Feb 09, 2010 at 12:13 UTC
    Note that you can execute a lot of windows exe files on some unixes with the help of Wine, a windows emulator. See http://www.winehq.org
Re: Running an executable on a Unix machine from a Windows machine.
by cdarke (Prior) on Feb 09, 2010 at 13:07 UTC
    The format of a Windows EXE file is proprietry to Microsoft so UNIX cannot execute that format - come to that, Windows cannot execute UNIX executables either (without an emulation layer).

    Of course, if you are using Open Source then there should be no problem - just take the source code from the Windows machine and compile on UNIX - simples!

    Of course it isn't that easy, but the principle is there - get a UNIX version of the executable and if there isn't one then build it yourself.
    A reply falls below the community's threshold of quality. You may see it by logging in.