image
image

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

Reply
 
Thread Tools
  #1  
Old February 7th, 2008, 12:20 PM
Registered User
 
Join Date: Oct 2007
Posts: 23
huub is on a distinguished road
Using Terminal to start application

Hi,

In Linux and BSD I'm using e.g. gnome-terminal to start applications like octave like this: "gnome-terminal -x octave". Is this possible with Terminal as well? I tried to get the man page, but didn't get it.

Thanks.
Reply With Quote
  #2  
Old February 7th, 2008, 03:06 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 241
macbri is on a distinguished road
How about the "open" command? A text-based command (say, "top") will open automatically in a new Terminal window, e.g.:

Code:
open `which top`
You can also override the default application with -a, if for example some other app tries to open your program:

Code:
open -a "Terminal.app" `which top`
Reply With Quote
  #3  
Old February 8th, 2008, 08:40 AM
Registered User
 
Join Date: Aug 2006
Posts: 5
wraith77 is on a distinguished road
If you're a Linux guy, I highly recommend the "MacOSX For Unix Geeks" book from OReilly.
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

vB 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


All times are GMT -5. The time now is 10:40 PM.


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