/ Hathaway Weblog / Gentoo Tip: Screen

Shane :: Linux :: April 04, 2006 # Gentoo Tip: Screen

Gentoo's emerge command is powerful, but it stops if you attempt to run it in the background, and it often takes a long time. Particularly when compiling stuff on a server, it's useful to have emerge work in the background even after I log out.

Solution: the screen utility. Before starting a long compile, I type screen, which opens a shell session that I can detach and reattach later. I start emerge, wait a little to make sure I typed the command correctly, then push Ctrl-A followed by D. At that point, I can log out while the screen session continues in the background. A few hours later, I type screen -x to reattach the session, often using a different computer than the one I used to start the emerge.

In general, the screen utility makes it easier to perform long running automated tasks, like compiling software, downloading large files, or converting media files.

Comments

Jonathan Ellis (October 13, 2006 09:27)

Does nohup not work with emerge?

No further comments may be added.

Click below to fill in the scripture reference.
Your browser is not able to display the scripture fill-in program. To see it, enable Javascript or use Mozilla 1.0 or better.
There is a law, irrevocably decreed in heaven before the foundations of this world, upon which all blessings are predicated-- And when we obtain any blessing from God, it is by obedience to that law upon which it is predicated.

Church: lds scriptures provident games pearls kzion shiblon film chancellor gateway cumorah byutv happiness nephi
Zope: freezope org com zen labs newbies zettai warnes
Python: home pyzine daily icanprogram
Genealogy: cyndi
Weblogs: jeffrey paul jon joel another-shane guido barry jeremy windley chrism zac
News: quakes lwn dc weather deseret zeitgeist softwarelivre
Zaurus: software developer
Tech: tango spintronics thin
Semantic: aaron sean
Reference: css rdf html4 javascript geckodom iecss emacs phrases acronyms
Reverse: advogato slashdot
Misc: gimp-savvy directory soda jokes shouldexist pdphoto