[SOLVED] Shell out of Windows Program and run Linux program
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't recognize '/usr/bin/ffmpeg' as an internal or external command, or batch s
cript.
But, out of the exact terminal window that I
instigate my program .... wine WindowsProgram.exe
I can type in "ffmpeg" and the system recognizes the program.
Can't recognize '/usr/bin/ffmpeg' as an internal or external command, or batch s
cript.
Now you are still in the windows environment as provided by wine, still using the windows system() call, but trying to invoke a Linux program on a filesystem not part of the windows environment... unsurprisingly the windows environment complains.
Quote:
Originally Posted by DrDwayne
But, out of the exact terminal window that I
instigate my program .... wine WindowsProgram.exe
I can type in "ffmpeg" and the system recognizes the program.
Now you are in the Linux environment from which you invoke the Linux program wine (which provides the windows environment for the windows program), and from that same Linux environment you are able to invoke a Linux command from the Linux filesystem, as it should be.
It has been a while since I last used wine, but if I am correctly understanding what you have asked...
So you are inside a windows environment as provided by wine, using the windows system() call to invoke another windows program.
Almost...
I am in a linux WINE environment running a windows program. I am attempting to call a linux program ffmpeg from inside the windows program that
is running in wine. Linux comes back and says:
"Can't recognize '/usr/bin/ffmpeg' as an internal or external command, or batch script."
Quote:
Originally Posted by astrogeek
Now you are still in the windows environment as provided by wine, still using the windows system() call, but trying to invoke a Linux program on a filesystem not part of the windows environment... unsurprisingly the windows environment complains.
Above is all true....But I think it is the linux environment that is complaining.
My system call in the Windows Program works perfectly fine calling any kind of Windows program either in Linux or Windows.
but it fails when trying call a linux program.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.