[SOLVED] Slackware 13.37 - Start a program from Terminal
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm just using the default terminal that comes preinstalled with slackware 13.37. Nothing fancy.
So judging by the rest of this thread, I would assume that on Ubuntu, the terminal doesn't send the HUP signal to all child processes but Slackware does handle this properly, thus killing all children unless specifically divorced/disowned? Does that sound about right?
Very unlikely. The handling of the HUP signal is not dictated by the parent, but by the child. So Ubuntu's terminal program will be as effective (or ineffective) as Slackware's. The child program will decide, usually because of code that the programmer wrote, to act on the parent dieing, or not. Slackware's FireFox is pretty much as released by Mozilla - it's very seldom that the Slackware maintainers go that deep. But of course Ubuntu and Debian are famous (notorious) for doing this, so what happens from that point on is anyone's guess. Even so, I'd be surprised if they modified this sort of behaviour.
Thanks for all the responses, and the nohup and > /dev/null options.
But for an example: I use putty for one of my work programs. It is a telnet based POS and parts system. I start it via the command line like [CODE]putty -load Parts\ Handler & [\CODE] because I have a few different versions I connect to. Now when I do this the program loads the proper session in the background, and I can use the terminal again. But if I close that terminal window, and I just did it again to confirm, my putty window (the child of that terminal) disappears.
I've never had this happen in Ubuntu and it seems weird that it would work differently in Slackware. I understand that certain children may die if the parent is killed, but I would think the terminal would be different since practically everything can be started from the command line. And putty isn't the only program that this happens to, it's just one that everyone here probably knows.
Code:
man screen
Screen is even more useful if you are logging into a remote box somewhere that has screen available on it.
Sorry for the dumb question maybe...
But are you simply closing the terminal window, which leads to closing of all child processes
or are you really logging out of it via exit / strg-d?
chrissi29 may be on to something. I just tried it and if I type exit to close the terminal, it didn't kill the child putty window. But when I click on [X] to close, it killed the second putty window I opened (the child of this new terminal). Interesting, I didn't realize the two commands sent different kill signals to the children, but it looks like this was the answer as to why the children close.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.