Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi we have ctrl-c key stroke to generate SIGINT signal. Then whats the key stroke for SIGHUP signal. I had to use in the script. Please help.
Please write more clearly...your question is hard to follow.
SIGHUP, like many other signals, is not tied to any particular key on the keyboard, unlike SIGINT (the <CTRL>-C), and others that are supposed to come from the TTY.
In the old days, it was common to dial up a computer from your terminal and log in, the same way you log in on a virtual console after pressing, say, <CTRL><ALT><F1> to get to that virtual console in the first place. No PPP, no Internet, no network connection at all. You can still configure your Linux system to accept phone calls via your modem and directly present the caller with a login screen. Once the user logs in this way, he gets a shell prompt. He can then run programs.
If, during the running of a program, the modem disconnects, the program receives SIGHUP. HUP stands for "hang up", as in hang up the phone.
So if you want to go to that trouble, you generate a SIGHUP that way.
You can also generate a SIGHUP for a particular process number x by going to another virtual terminal or xterm window and typing at the shell prompt "kill -HUP <PID>"
Hi i have to write a program to show the working of signals. I have written like this for SIGINT and SIGQUIT. But not sure for how to continue it for using SIGHUP. What is the program here should be for SIGHUP.
Hi i have to write a program to show the working of signals. I have written like this for SIGINT and SIGQUIT. But not sure for how to continue it for using SIGHUP. What is the program here should be for SIGHUP.
I am asking how to make it for SIGHUP. Please help.
And I told you...but you apparently didn't read my first post:
Quote:
SIGHUP, like many other signals, is not tied to any particular key on the keyboard, unlike SIGINT (the <CTRL>-C), and others that are supposed to come from the TTY.
SIGHUP isn't tied to a keyboard command, like alot of other signals are, which is why I posted what I did. ChrisM also posted good info too.
Yes it is my home work but i asked you only after i tried and even i wrote what i got. So whats wrong? You told that OP's have to try first and to show what they did before asking for homework. So i did not get where i did wrong.
Yes it is my home work but i asked you only after i tried and even i wrote what i got. So whats wrong? You told that OP's have to try first and to show what they did before asking for homework. So i did not get where i did wrong.
Please know that I am giving you the benefit of the doubt here.....With that in mind, look at your first post in this thread. You did not give any evidence of having looked for the answer (eg a search here or on Google).
I think the issue is that your posting history gives the impression that you are simply relaying the homework questions as you get them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.