Execution Command on Emacs after Compilation Is complete
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Execution Command on Emacs after Compilation Is complete
Okay so I am a new user to emacs and the unix platform. I currently compiled my code and it compiled without error. Now, I am curious as to how I execute the code so that it would run. My code consist of JavaScript and the tutorials I tried looking at did the execution command for Java and C++. So I am questioning as to how to do it for javascript on emacs.
Do I use C-x C-e still or do I use something else? Please Help!!
Emacs does not have a way to run an executable, but it does have a way to open a command prompt, or it also has a way to invoke an executable using GDB.
Meanwhile, you say this is Javascript. That is not compiled, it is interpreted, and you run it with a Java virtual machine. This is nothing which emacs will provide for you.
If you are writing C or C++ and have compiled it, the result is in the directory where you started from. You can open a shell using ESC-x then typing shell<return> and it will open a shell, or just go to the same command prompt where maybe you started emacs. Or, open a command prompt and go to the directory where your source file is located.
However first it would be helpful what exact file type you are writing?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.