Language Selection

English French German Italian Portuguese Spanish

Manipulating Unix Background Processes

Filed under
HowTos

The HUP (hangup) signal is issued to the process once the user's connection to the server is terminated. Once the HUP signal is issued, the process is terminated along with the connection, which presents one with an interesting problem; how does one keep a process running in the background?

There are a few options you can choose if you're ever presented with this problem, one is to leave the SSH session open at all times and hope that it's neither terminated, nor the computer on which the SSH session is running shuts down. Hilarity aside, I think it should be stated that this isn't a feasible solution to the problem at hand. Sure, you can leave the session open and pray there's no power outage in your general area, but don't brag about this strategy to your peers anytime soon lest you be ridiculed for blatant stupidity and/or noobishness.

Another way to get around this problem, which Doug pointed out, is to use nohup, a Unix command that is used to run another command while suppressing the action of the HUP signal.

Full Story.

More in Tux Machines

Leftovers: Gaming

Fedora: The Latest

Leftovers: KDE

  • ocs-client GSoC
    So my GSoC is coming to its end. I have no cool screenshots to upload this time and I have no new great features to talk about, in fact Caludio and I manly focused on bugfixing and testing. We have spent time also discussing about possible changes and improvements to the current OCS protocol. So is the client ready do be lunched? In short I would say that no, not yet.. although most of its features are implemented and it is usable, it is still an “under construction” project, we both still have to make some important decisions to make it usable to everyone.
  • The Fiber Engine Poll, Updates, and Breeze
  • Bringing Akonadi Next up to speed
    and refactoring it again, to make sure the codebase remains as clean as possible. The result of that is that an implementation of a simple resource only takes a couple of template instantiations, apart from code that interacts with the datasource (e.g. your IMAP Server) which I obviously can’t do for the resource.
  • New linter integration plugins for KDevelop
  • Artikulate Plans for Randa
    Language learning is often considered as the task of memorizing new vocabulary and understanding the new grammar rules. Yet for most, the most challenging part is to actually get used to speak the new language. This is a problem that Artikulate approaches with a simple idea: to learn the correct pronunciation of a word or even a longer phrase, the learner listens to a native speaker recording, repeats and recordings it, and finally compares both recordings to improve herself/himself with the next try.

Tails 1.5.1 is out

Tails, The Amnesic Incognito Live System, version 1.5.1, is out. This is an emergency release, triggered by an unscheduled Firefox release meant to fix critical security issues. Read more