LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-03-2005, 08:42 AM   #1
SlackN00b
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 44

Rep: Reputation: 15
How do I launch a prog from console....


Hello, how do I launch a program from console, leaving it open while closing the console ?
Thanx
 
Old 11-03-2005, 08:48 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Is this what you're looking for?

Code:
exec ${MY_PROGRAM}
I'm afraid I'm not entirely sure what you're after ... presumably this is from within X?

- Piete
 
Old 11-03-2005, 08:50 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You have some possibilities :

- use nohup command like :
nohup <your command>
(man nohup for more infos)

- use screen tool
look at the many tutorials in the web like :
http://www.kuro5hin.org/story/2004/3/9/16838/14935

Now, there are surelly other way depending on what your program is
 
Old 11-03-2005, 09:35 AM   #4
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
I think he wants to be able to open a program from the console in X.

& is what you're looking for.

"firefox &" will allow you to open firefox from a shell but when the shell closes it does not close firefox.
Of course firefox is just an example, & is the important part.

Note: After issuing a command it may not immediatly return you to the prompt. Hit enter a few times, then you can exit the shell.

P.S. Screen is an awesome utility, so I'll give that an honorable mention.
 
Old 11-03-2005, 10:33 AM   #5
SlackN00b
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Thank you all guys for your answers and sorry if I weren't precise enough. The solution I was lookin for is that one offered by username17 & keefaz
Prob was that maybe I didn't wait enough after pressing &, so the shell closed with the application.
 
  


Reply


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
I want to start a prog from another prog but not as child grupoapunte Programming 5 05-23-2005 05:37 PM
How can I launch Xwindows on Redhat 9 console emcy43 Linux - Newbie 3 04-01-2005 05:43 AM
Evolution 2.2beta won't launch except via console dhave Linux - Software 0 12-08-2004 08:02 AM
Better buying "advanced linux prog" or "unix advanced prog" Dominik Programming 3 12-31-2003 01:11 PM
Boot in console mode or Launch X at start, how to config.? nutshell Linux - General 4 06-01-2002 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:14 PM.

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