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

Ubuntu Touch Gets Major Update and the OS Is Now Crazy Fast – Screenshot Tour

Ubuntu Touch has just received a new major update and the developers have made some serious changes to the operating system, which now feels a lot faster and the experience is a lot smoother. Read more

35 Open Source Tools for the Internet of Things

In a nutshell, IoT is about using smart devices to collect data that is transmitted via the Internet to other devices. It's closely related to machine-to-machine (M2M) technology. While the concept had been around for some time, the term "Internet of Things" was first used in 1999 by Kevin Ashton, who was a Procter & Gamble employee at the time. Read more

IoT tinkerers get new Linux hub & open platforms

Cloud Media, the maker of entertainment box Popcorn Hour, launched a project on Kickstarter, Inc. that will add to the growing number of smart hubs for people to connect and control smart devices. Called the STACK Box, it features a Cavium ARM11 core processor, 256MB DDR3 RAM, 512MB flash, SD slot, 802.11n WiFi, Bluetooth LE 4.0, Z-Wave, standard 10/100 Ethernet port, optional X10 wired communication, 5 USB 2.0 ports, RS-232 port, 2 optocoupler I/O, Xbee Bus, Raspberry Pi-compatible 26-pin bus and runs Linus Kernel 3.10. IT also features optional wireless communications for Dust Networks and Insteon with RF433/315, EnOcean, ZigBee, XBee, DCLink, RFID, IR coming soon. Read more

Citrix and Google partner to bring native enterprise features to Chromebooks

Chromebooks are making inroads into the education sector, and a push is coming for the enterprise with new native Chrome capabilities from Citrix. Google and Citrix have announced Citrix Receiver for Chrome, a native app for the Chromebook which has direct access to the system resources, including printing, audio, and video. To provide the security needed for the enterprise, the new Citrix app assigns a unique Receiver ID to each device for monitoring, seamless Clipboard integration across remote and local applications, end user experience monitoring with HDX Insight, and direct SSL connections. Read more