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

OSS Leftovers

  • DataBasin - object inspector and updates
    First, the underlying DataBasinKit framework got an important update.
  • In-demand dev skills, understanding licensing, and more open source news
  • Higher ed systems expanding access to open-source materials
    Open-source learning technology is at the core of higher education for institutions that want to reach broader audiences with very strict ideas about how convenient learning should be. But developing these initiatives does not happen quickly or easily. It requires strong leadership in information technology, expertise to determine which solutions work best for a campus, and a financial commitment to making sure the technology is sustainable.
  • Proxmark Pro Proxmark3 Standalone Open Source RFID Tester (video)
    Rysc Corp has unveiled a new open source board in the form of the Proxmark Pro which now offers a true standalone client and RFID test instrument, check out the video below to learn more. The Proxmark Pro will feature an FPGA with 5 times the logic cells of the Proxmark3 and will remove the need to switch between HF and LF bit streams during operation, to use developers.
  • ErupteD Brings Vulkan To The D Programming Language
    The D programming language is just the latest to have support for Vulkan alongside C++, Rust (via Vulkano, if you missed that project), Go, and many other modern languages getting bindings for this Khronos Group high performance graphics API. Should you not be familiar with the D language, see Wikipedia.

Leftovers: Security