LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-15-2016, 08:05 AM   #1
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Rep: Reputation: Disabled
Question emacs command closed the terminal when i ran it on background ?


I was checked in my system emacs installed or not, using following command.
Code:
emacs &
It was closed the terminal, when ran this command in particular folder .That folder have some codes samples

Quote:
Note:Emacs not installed in this system
My distro is Ubuntu 14.04

Last edited by P.G.Krish; 10-15-2016 at 11:10 AM.
 
Old 10-15-2016, 10:37 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by P.G.Krish View Post
I was checked in my system emacs installed or not, using following command.
Code:
emacs &
It was closed the terminal, when ran this command in particular folder .That folder have some codes samples
Sorry, can't make out what your question actually is asking. Is there a problem or not? And you're not providing any details about your system..read the "Question Guidelines" link in my posting signature, as you've been asked to in MANY threads you've posted, and keep saying you will and will post details...but you don't.

Also, what did you THINK was going to happen when you put the & after the emacs command?? You backgrounded it...so it went to the background, didn't it?

Last edited by TB0ne; 10-15-2016 at 10:39 AM.
 
Old 10-15-2016, 11:43 AM   #3
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Original Poster
Rep: Reputation: Disabled
I can explain the scenario:

1.Open the terminal
2.cd directory to that location
Quote:
cd /testfolder/samplecode
3.Then enter following command
Quote:
emacs &
4.Its close terminal
 
Old 10-15-2016, 12:13 PM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Does it happen if you push something else in the background? I am confused why you would want to run emacs in the background except to test out trying to put something in the background.
Is it the case you have never used this option before?
 
Old 10-15-2016, 12:43 PM   #5
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by grail View Post
Does it happen if you push something else in the background? I am confused why you would want to run emacs in the background except to test out trying to put something in the background.
Is it the case you have never used this option before?
This incident happen in accident, I was accidentially enter this command, Its closed terminal
 
Old 10-15-2016, 01:07 PM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Well the obvious answer is don't do it again Although I understand this wouldn't explain why it happens. Maybe if you provided the terminal details it may help, but it does sound rather odd?
 
Old 10-15-2016, 04:07 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by P.G.Krish View Post
I can explain the scenario:
1.Open the terminal
2.cd directory to that location
3.Then enter following command
4.Its close terminal
Right...so AGAIN, YOU ARE STILL NOT PROVIDING DETAILS...DO YOU NOT UNDERSTAND THIS, despite saying you will 'do better', in many of your other posts?????

AGAIN: you ran emacs and backgrounded the task...it shut the terminal down, because you TOLD IT TO GO TO BACKGROUND. The task is still running, but you can't see it. This is normal behavior...nothing to 'fix' or 'troubleshoot'....
 
Old 10-17-2016, 12:10 AM   #8
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Right...so AGAIN, YOU ARE STILL NOT PROVIDING DETAILS...DO YOU NOT UNDERSTAND THIS, despite saying you will 'do better', in many of your other posts?????

AGAIN: you ran emacs and backgrounded the task...it shut the terminal down, because you TOLD IT TO GO TO BACKGROUND. The task is still running, but you can't see it. This is normal behavior...nothing to 'fix' or 'troubleshoot'....
TB0ne,
But its only close terminal when we are in particular folder
 
  


Reply

Tags
emacs, terminal



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 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
Getting return value from program ran in background dbrazeau Programming 3 03-10-2010 07:01 PM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 02:41 AM
ran 4 background jobs some have +/- what does that mean? CD_TOASTER Linux - Newbie 1 05-25-2007 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:15 AM.

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