Skip over navigation
home research portfolio photos reading listening

thoughtcrumbs

Useful nohup

I just learned about the nohup unix command, which has to be one of the most useful things ever. If you log in to a remote terminal and start a process, it dies when you close the terminal. Prepend "nohup" to your command and it will run long after the invoking window has gone away. Very useful for day-long number crunches when you want to, say, disconnect your laptop from the internet.

A sidenote, à la this previous conversation about dirty unix commands: While looking for nohup, I found an FAQ that includes questions like "How do I keep track of people who are fingering me?".
January 19, 2007 : 5:45 PM
: link

Comments

Another neat tool for leaving things running and coming back to them is "screen".
posted by Anonymous jcreed : January 19, 2007 10:43 PM : link to this comment  
I second that screen suggestion. I do all my work inside screen sessions.
posted by Blogger P : January 20, 2007 4:52 AM : link to this comment  
Because I hate having multiple terminal windows open, I always use nohup in conjunction with &, to return the prompt to me while the nohup-ed command is running.
posted by Blogger uniqhrzn : January 25, 2007 2:15 PM : link to this comment  
Good point, uniq. I actually append an & to my commands, too. And P and J, I'll try screen!
posted by Blogger Moira : January 29, 2007 1:42 PM : link to this comment  
I'm going to go all pedantic on you and demand you fix the á to be the proper à. Sorry, can't help myself.
posted by Blogger Benoit : February 04, 2007 1:06 PM : link to this comment  
Thanks, Benoit. That's the problem of multi-language translation (French to HTML). Sometimes my acutes and graves get all kerfunkled.
posted by Blogger Moira : February 05, 2007 9:48 AM : link to this comment  
It's the curse of being bilingual. I see an accent going the wrong way and I just turn green and tear off my shirt. Luckily, Google comes through with free shirts often enough.
posted by Blogger Benoit : February 05, 2007 12:45 PM : link to this comment  
A month later, screen is still awesome. I've been in love with it for five years now.

(do you have a livejournal syndication?)
posted by Blogger Muffin : March 09, 2007 11:50 PM : link to this comment  
Post a Comment
About
Moira Burke

Psst! This is the blog of Moira Burke, a Ph.D. student in the HCI Institute at Carnegie Mellon University.

Rife with derivative pop culture blather, this site occasionally features thoughts on social psychology, usability, aesthetics, and the general meanderings of someone figuring out the meaning of life. Won't you help me find it?

my first name @ this domain name

Also see: Veggieburgh, my restaurant and recipe site

Previous ten posts
  • Book reviews
  • Speaking of national spending
  • Mmmm . . . C is for coverage, that's good enough f...
  • Year in photos
  • Mom's take on weekday television
  • Cookie overload
  • A perfect Portland day
  • Movie game
  • Hiking
  • Freak show
Monthly Archives