image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old January 9th, 2006, 05:10 AM
arri's Avatar
Registered User
 
Join Date: Mar 2003
Posts: 262
Thanks: 0
Thanked 0 Times in 0 Posts
arri is on a distinguished road
running app from commandline, and then close the terminal

hi


it must be possible:

run some app from the commandline, using an argument that makes it possible that the app runs on it's own, so i can close the terminal-session, without shutting down the app.


how do i do that?
Reply With Quote
  #2  
Old January 9th, 2006, 08:37 AM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 9,905
Thanks: 2
Thanked 61 Times in 57 Posts
ElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura about
You mean like backgrounding?

Try placing a space and the character '&' after the terminal command:
Code:
> ./someapp arg1 arg2 &
That will force the program into the background. You can bring it back to the foreground by typing the command "fg". I think backgrounding a process will let you close the Terminal window and keep the process in execution.
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old January 9th, 2006, 09:05 AM
arri's Avatar
Registered User
 
Join Date: Mar 2003
Posts: 262
Thanks: 0
Thanked 0 Times in 0 Posts
arri is on a distinguished road
i think the ampersand indeed puts the process to the background, so that that you get your promt back, and can do other stuff in the same terminal-session, but you can't close the window.

i think i've seen someone do this once.. but i forgot..

thanks anyway.
Reply With Quote
  #4  
Old January 9th, 2006, 02:45 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
...If it's a "normal" mac app, say Preview.app, you could do this:

open /Applications/Preview.app && exit
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close screen but keep powerbook running rbrugos Hardware & Peripherals 5 December 5th, 2005 04:46 PM
Close running program? elpepe Mac OS X System & Mac Software 4 November 15th, 2004 08:48 AM
How to close the Terminal window after a while using AppleScript? voice- Software Programming & Web Scripting 3 December 23rd, 2003 01:37 PM
Running aqua from the commandline. unic@dds.nl Mac OS X System & Mac Software 8 July 26th, 2002 06:12 AM
Terminal window close on shell exit belsebubben Mac OS X System & Mac Software 2 March 25th, 2001 09:23 AM


All times are GMT -5. The time now is 12:56 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.