Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 03-15-2019, 02:12 PM   #1
LQ Newbie
Registered: Mar 2019
Posts: 2

Rep: Reputation: Disabled
Question 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!!
Old 03-15-2019, 03:04 PM   #2
Senior Member
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,654

Rep: Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214
How did you compile the code? Show us the command you used to compile.
Old 03-15-2019, 03:12 PM   #3
LQ Newbie
Registered: Mar 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
As my compiling command, I used M-x compile
Then I used make -k <file name>
Old 03-15-2019, 05:08 PM   #4
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,020
Blog Entries: 13

Rep: Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to kill tcpdump execution after data transmission is complete? omega341991 Linux - Newbie 3 06-08-2012 01:52 AM
How can I get emacs -nw when I call emacs from a terminal but GUI emacs elsewhere? Blackened Justice Linux - Newbie 4 09-08-2011 07:57 AM
are they same " sh execution " and " ./ execution " shravee Linux - Newbie 1 04-17-2010 01:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration