LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-19-2011, 09:14 PM   #1
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Rep: Reputation: 0
Launching applications in xterm


I've search around and looked at the man page but can't seem to figure this out.. using fluxbox one can click an application in the menu and it opens without a supporting terminal. However, if I open xpdf in the terminal, xpdf launches and the terminal waits for it to exit... my question is, what is the command to hide the terminal and just launch the application?

Thanks
 
Old 07-19-2011, 11:18 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The trick is to append the & sign to the end of the command to free up the terminal when the app starts.

xpdf &
 
Old 07-19-2011, 11:31 PM   #3
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
bigrigdriver is correct, however, some programs give a lot of output which might be inconvenient, one way to get rid of this is to use "&> /dev/null" at the end, or alternatively use a log file instead of /dev/null, if so desired.
 
Old 07-20-2011, 07:13 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by ADX View Post
I've search around and looked at the man page but can't seem to figure this out.. using fluxbox one can click an application in the menu and it opens without a supporting terminal. However, if I open xpdf in the terminal, xpdf launches and the terminal waits for it to exit... my question is, what is the command to hide the terminal and just launch the application?

Thanks
There is no terminal in the first place when you launch with Fluxbox. What makes you think there is one?

Anyway, when you run a command like "cp" in a terminal and it takes a long time, the prompt doesn't return until cp finishes. Why would xpdf be any different? Anyway, there are two ways to do this:

Code:
nohup xpdf &
Code:
xpdf &
disown
 
Old 07-20-2011, 12:04 PM   #5
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bigrigdriver View Post
The trick is to append the & sign to the end of the command to free up the terminal when the app starts.

xpdf &
That worked great, thanks.


Quote:
Originally Posted by MTK358 View Post
There is no terminal in the first place when you launch with Fluxbox. What makes you think there is one?
I didn't say there was a terminal when fluxbox starts, I said there is no terminal that launches alongside a program from the flux menu.
 
Old 07-20-2011, 12:18 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by ADX View Post
That worked great, thanks.
Note that that command just tells the program to run in the background so that you can keep using the terminal while the program runs.

The "nohup" and "disown" commands I suggested make it so that the program is not a child of the terminal anymore, so that the program will keep running even if you close the terminal.

Quote:
Originally Posted by ADX View Post
I didn't say there was a terminal when fluxbox starts, I said there is no terminal that launches alongside a program from the flux menu.
Sorry, I thought that you thought that fluxbox does launch a terminal, but somehow hides it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] termination of xtern launching an application with xterm -e zakotsi Linux - General 2 06-09-2011 01:06 AM
[SOLVED] Unable to find commands for launching some applications . davefrank Linux - Desktop 5 02-03-2011 07:22 AM
Launching gui applications on remote computer babu198649 Linux - Newbie 4 03-30-2010 01:20 AM
crontab : launching applications barunparichha Linux - Software 7 06-26-2008 12:59 AM
I get following output to xterm when launching xmms ... purpleburple Linux - General 11 07-26-2002 06:10 AM

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

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