PDA

View Full Version : [ubuntu] run gedit from terminal



jk.cheng
January 7th, 2010, 08:12 PM
i saw in mac, ppl are using this command "mate -w" to bring up textmate without hanging the terminal...

wonder, how it can be done in Ubuntu terminal...

adelphos
January 7th, 2010, 08:14 PM
You mean, run gedit and still use the terminal for new commands? "gedit &"

jk.cheng
January 7th, 2010, 08:18 PM
gedit &
[1] 15058

how to make it totally clean??? i after gedit & nothing will display on the terminal...

adelphos
January 7th, 2010, 08:25 PM
gedit &
[1] 15058how to make it totally clean??? i after gedit & nothing will display on the terminal...

Oh, you don't want it to output warnings or anything? You can output that to a log file... so "gedit > log &". When you first enter that, you'll still see the process number as above, but nothing else afterward. Just press enter and you won't hear from gedit. The output will be in that file.

mcduck
January 7th, 2010, 08:33 PM
You can also use "nohup" (as in No Hang Up). Some programs will still hang up if you close the terminal when started with an "&" in the end. Using ohup solves that problem since it starts the program as a separate process from the terminal, and redirects all messages to a text file (~/nohup.out).


nohup gedit &