Hi all
Today a simple mode to check if a process was killed.
It is adding at the end of your script these two rows :
...
...
...
exitvalue=$?
echo "exit code of my program is " $exitvalue
When script ends it'll show his exit code.
For example if it was killed (kill -9) appears this message :
exit code of my program is 137
The exit code 137 is 128 + 9 so process ended for a "kill -9" command.
This is a table of HPUX Signal :
Signal Value Action Comment
-------------------------------------------------------------------------
SIGHUP 1 Term Hangup detected on controlling terminal
or death of controlling process
SIGINT 2 Term Interrupt from keyboard
SIGQUIT 3 Core Quit from keyboard
SIGILL 4 Core Illegal Instruction
SIGABRT 6 Core Abort signal from abort(3)
SIGFPE 8 Core Floating point exception
SIGKILL 9 Term Kill signal
SIGSEGV 11 Core Invalid memory reference
SIGPIPE 13 Term Broken pipe: write to pipe with no readers
SIGALRM 14 Term Timer signal from alarm(2)
SIGTERM 15 Term Termination signal
Stay Tuned.
This blog was created to improve my English and share news, thoughts and opinions about the world around me. I use it also to fix some technical solutions for future use.
Iscriviti a:
Commenti sul post (Atom)
Check first quarter 2024
Hi all Today, 1st May I'll check my 2024 goals. This is the first time I check it. For me it's a good way to reach more objective p...
-
Hi all Today i want speak about education and eLearning websites. Personally I am using COURSERA , in this site you can find many course...
-
Hi everyone Today's post is about something that shocked me, I asked DALL-E 2 to draw the most horrible picture you can imagine. The res...
-
Hi all, After ChatGPT from few day, Bard, the Google AI engine is available in Italy, down a simple blog example wrote by Bard, enjoy and be...
Nessun commento:
Posta un commento