10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
echo "Usage : $0 Signalnumber PID"
case "$1" in
1) echo "Sending SIGHUP signal"
kill -SIGHUP $2
2) echo "Sending SIGINT signal"
kill -SIGINT $2
3) echo "Sending SIGQUIT signal"
kill -SIGQUIT $2 (3 Replies)
Discussion started by: Ramesh M
2. Shell Programming and Scripting
Hi everyone! I want to be able to send a signal to another machine on the same network, and have it trigger a script on that machine. Here's the reason why I can't just ssh: I don't have a username on that machine, but there is a user that is always logged on that I can do stuff on.
So, I want... (5 Replies)
Discussion started by: declannalced
3. UNIX for Dummies Questions & Answers
I am basically new to signals in UNIX. My question is, should the signal() command be called only once in the program? What will happen if it's called multiple times? I am trying to write an alarm program where the signal handler function changes in runtime. It just doesn't work if I... (2 Replies)
Discussion started by: bashdrew
We have written a deamon which have many threads.
We are registering for the SIGTERM and trying to close main thread in this signal handling. Actually these are running on Mac OS X ( BSD unix). When we are unloading the deamon with command launchctl, it's sending SIGTERM signal to our process... (1 Reply)
Discussion started by: Akshay4u
5. Shell Programming and Scripting
I have Master script, Main script ,and 4 Child script.
/export/home/user/Child4.sh &I run only Master.sh script... (1 Reply)
Discussion started by: almanto
I want to catch all signals that my program receives print their name and then execute the default handler.
Can you help me on that?
I've tried the following code:
void (*hnd)(int i);
char signals =
"SIGHUP",... (7 Replies)
Discussion started by: dark_knight
7. UNIX for Dummies Questions & Answers
hi all ,
I want to execute a script on the user logout(using gnome environment).
Is ther any way to execute it through TRAP stmt? (2 Replies)
Discussion started by: harsha10
8. Shell Programming and Scripting
I have a script which invoke a java program, because the program requires file as input, hence the script would sleep a X seconds then check for file existence, if the file exists then program is invoker else, keep waiting until the time is up. My problem is that if there is a way to find out if my... (1 Reply)
Discussion started by: mpang_
I am just running a incremental back-up on one of my server.
But these days It abrubtly fails with below error.
User defined signal 1
When I rerun the back-up, It completed successfully.Earlier this was not happening.
Any Idea, what could be the problem... (0 Replies)
Discussion started by: nitesh_raj
10. UNIX for Dummies Questions & Answers
Can any body give example of using Unix Signals. What I want to do is
I am running a sql query in a shell script
I want, if sql query exceed the defined no. of seconds limit, then I would like to kill the process.
I know this can be done thru Unix Signal Handling but I do not know... (8 Replies)
Discussion started by: sanjay92