c program the catches the ctrl-c(SIGINT) Signal for the
first time and prints a output rather and exit on pressing
Ctrl-C again
Answer Posted / dwarf
on Linux:
man 2 signal
for signum use SIGINT
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How will you pass and access arguments to a script in linux?
How do I run a powershell script?
What is the use of break command?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How does ls command work?
Can you write a script to portray how set –x works?
I want to connect to a remote server and execute some commands, how can I achieve this?
write a shell script to check the failed jobs?
Is shell scripting a language?
How do I open the shell prompt?
Which is better perl or shell scripting?
What's the difference between scripting and coding?
What is sed in shell script?
How do I start a shell script?
How to find all the files modified in less than 3 days and save the record in a text file?