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 to use arguments in a script?
What does echo mean in scripting?
How to print all the arguments provided to the script?
Is scripting and coding the same thing?
How do I debug a shell script?
How to redirect both standard output and standard error to the same location?
How to get the first line from a file using just the terminal?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
What is the first line in a shell script?
What does $@ mean bash?
How do I run a script on mac?
shell script for reverse the string
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
What is sed in shell script?
How many fields are present in a crontab file and what does each field specify?