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

Mac OS X Yosemite, From The Perspective Of A Linux User

It’s been a while since Mac OS X 10.10 “Yosemite” has been released into the wild, so we have a pretty good idea of how it performs. Mac OS X is also sometimes used as the poster child for a clean and elegant interface (most of the time, anyways). As a Linux writer, it’s my duty to make comparisons not only amongst Linux distros, but also against the competition. Read more

Kodi 14.0 Helix Unwinds

Merry Christmas and happy holidays, everyone! We are proud to announce the release of Kodi 14.0, which comes with a new name, a new logo, and a wide variety of new features, but underneath the new coat of paint remains the same software we all love. A detailed changelog for Kodi 14 can be found under milestones on our code repository, should you be interested. With that said, let’s take a look at some of the features that come with Kodi 14.0. Read more

KaOS ISO 2014.12

KaOS is very proud to announce the availability of the December release of a new stable ISO. This ISO marks two major milestones for this distribution. Since it’s inception almost two years ago, a need to be ready for UEFI installs has always been a priority. That was tied though to getting a modern Qt based installer that could handle such UEFI installs. With this ISO, both are implemented. Read more

Old FOSS Friend & Foe Represents Sony in Hack

Boies, along with three attorneys representing the States, brought Microsoft to it’s knees — or so it seemed at the time. On November 5, 1999, Judge Thomas Penfield Jackson found that Windows dominance on the PC made the company a monopoly and that the company had taken illegal actions against Apple, Java, Netscape, Lotus Notes, RealNetworks, Linux, and others in order to maintain that monopoly. He ordered Microsoft broken in two, with one company producing Windows and another handling all other Microsoft software. As we all know, Judge Jackson’s solution was never implemented. Although an appeals court upheld the verdict against Redmond, the breakup of the company was overturned and sent back to the lower court for a review by a new judge. Two years later, in September, 2001, under the Bush Administration, the DOJ announced that it was no longer seeking the breakup of Microsoft, and in November reached a settlement which California, Connecticut, Iowa, Florida, Kansas, Minnesota, Utah, Virginia and Massachusetts opposed. The settlement basically required Microsoft to share its APIs and appoint a three person panel that would have complete access to Microsoft’s systems, records, and source code for five years. The settlement didn’t require Microsoft to change any code or stop the company from tying additional software with Windows. Additionally, the DOJ did not require Microsoft to change any of its code. Read more