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

Why the Open Source Stars Must Align

Open source projects like OpenStack, Docker, OPNFV and OpenDaylight are more supported and better funded than ever before. They mark a broader trend of large, active and well-resourced open source projects that are among the leaders in Big Data, cloud computing, operating systems and development practices. Open source has come a long way in 30 years – and its success marks a new era for the overall OSS community. But success does not come without potential pitfalls. One of the greatest obstacles to project success isn’t the proprietary competition – it’s the lack of communication between large open source projects like OpenStack and Docker. Read more

Myth Busting the Open-Source Cloud Part 1

On the contrary, open-source cloud computing products are designed from the outset with security in mind. For example, there are features such as identity management to monitor who has access to content, and data encryption to safeguard information while it’s at rest or in transit. Furthermore, open-source cloud software is peer-reviewed by community participants, leading to continuous improvements in the quality of security features and mechanisms. This community also monitors and rapidly discloses vulnerabilities and issues, and provides security updates to address them. Read more

What does an adult look like in an open source community?

You're no longer "just an adult." You're now trusted and looked to for opinions on how the community should grow. You're a community elder. You embody the history. You keep the history. You work together with other adults and elders to guide and make the community stronger. And to a certain extent, the community once again looks after you, just as it did in the first phase. Read more