LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2003, 10:33 PM   #1
TazLinux
Member
 
Registered: Dec 2002
Location: Phoenix
Distribution: Mandrake 9.2
Posts: 228

Rep: Reputation: 30
Starting program with terminal


I know how to start a program with the terminal, but when I press ctrl-c to get prompt back the program kills.


How do I open a prog with the terminal and get back to prompt, without the program shutting down.
 
Old 02-25-2003, 10:52 PM   #2
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
do "info nohup" and see if that's what you're looking for.
 
Old 02-25-2003, 10:55 PM   #3
TazLinux
Member
 
Registered: Dec 2002
Location: Phoenix
Distribution: Mandrake 9.2
Posts: 228

Original Poster
Rep: Reputation: 30
I did that but no avail.


How is this done?
 
Old 02-25-2003, 11:14 PM   #4
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
OK,how about "programname &"
 
Old 02-25-2003, 11:27 PM   #5
TazLinux
Member
 
Registered: Dec 2002
Location: Phoenix
Distribution: Mandrake 9.2
Posts: 228

Original Poster
Rep: Reputation: 30
Thankyou Allen!!
 
Old 02-25-2003, 11:31 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Also you can do:

jobs

This will tell you what jobs are running in the background. If you want to bring them back to the foreground you can do:

fg %1

where 1 is the job number given by the jobs command. Maybe this is a little too much info but what the hell.
 
Old 02-26-2003, 12:43 AM   #7
TazLinux
Member
 
Registered: Dec 2002
Location: Phoenix
Distribution: Mandrake 9.2
Posts: 228

Original Poster
Rep: Reputation: 30
Ahhhh what the hell, you can't ever know to much about linux.


Thanks guys, you were a great help.
 
Old 02-26-2003, 01:42 AM   #8
xYko
Member
 
Registered: Feb 2003
Location: Helsingborg, Sweden
Distribution: Slackware
Posts: 52

Rep: Reputation: 16
You can also use CTRL+Z if you started a program without the ampersand, however that will only suspend it and not put it in the background. Type bg after you suspend to resume the program in the background.
 
Old 02-26-2003, 07:16 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,775

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
If close the xterm with the programing running in the background it will terminate the program. You can always open up another terminal or switch consoles if not running x.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting Fedora in the terminal TheDude611 Fedora 8 10-02-2008 06:18 AM
Starting a program so it opens in a new terminal dangerousdave Linux - Newbie 1 03-24-2005 04:26 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM
Starting services from terminal ExploiT Linux - General 4 09-18-2004 10:04 PM
Starting a forking program in terminal Ztyx Linux - General 2 11-09-2002 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:09 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