02-05-2002
The program would have to run as either root, or the user you're killing. Simply kill the shell, and the rest should die (unless they've been told not to - in which case you have to kill each one).
10 More Discussions You Might Find Interesting
1. Programming
Hi,
Perhaps I am asking a silly question, but I really don't know about it. Can anyone tell me the function for "sleep" kind of functionality in C language for Unix. I don't think any function with the name of sleep() exits in Unix's C language. or perhaps I am not known with the header file... (3 Replies)
Discussion started by: Ahsan
3 Replies
2. Solaris
hello ,
I have a C program which runs perfectly on linux but gives a segmentation core dump when i try to run it on solaris.
The compilation of the c code happens without any errors on solaris.
Any pointers
thanks
Nayeem (2 Replies)
Discussion started by: nayeemmz
2 Replies
3. Shell Programming and Scripting
How to write a program to
store the list of ordinary files and the directory files in the specified directory in two files called dir.dat and ord.dat. Then print the largest directory and largest file? (1 Reply)
Discussion started by: rameshparsa
1 Replies
4. Shell Programming and Scripting
how to write shell program. EX : to check whether a string is a palindrome or not. (9 Replies)
Discussion started by: raram
9 Replies
5. Linux
Can any1 guide me how to invoke a java program from a sh file.
do i need to set up the class path.
how to include the needed jar files. (1 Reply)
Discussion started by: Dine
1 Replies
6. UNIX for Dummies Questions & Answers
Hi everybody,
Can anyone suggest me some good books on Linux Prog.. I know richard stevens is always there.. But any specific books on Linux Porgramming and Networking in Linux.. Wud be of great help if anybody replies.. (4 Replies)
Discussion started by: srikumar_cs
4 Replies
7. Infrastructure Monitoring
Hello guys,
this solaris 10 on V480, does anyone know what do below errors indicate? I get them at console when system boots.
server: svc_tp_create: Could not register prog 300598 vers 1 on udp
Nov 11 16:57:43 servername server: svc_tp_create: Could not register prog 300598 vers 1 on tcp... (2 Replies)
Discussion started by: upengan78
2 Replies
8. Programming
Hello Friends,
I made this program, it is running fine. when i try to add this line of code in to do repeat. It is giving segmentation error. can you please tell me how should i fix tht error.
program runs fine. when i add
char r;
if statement
while (ch r ='y')
some cofe... (4 Replies)
Discussion started by: Learnerabc
4 Replies
9. Shell Programming and Scripting
I need a shell programing script for "double words"
Available Data:
This is a shell script that is used to find the ten character words in the machine local
dictionary (/usr/dict/words) that are made up with two valid english words that are
five character long. This means that each of the... (0 Replies)
Discussion started by: sujithcrazy
0 Replies
10. Debian
HI
Can anyone provide me with codes for file transfer server to client or vice versa?
Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming.
Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies
LEARN ABOUT OPENSOLARIS
hatimerun
hatimerun(1M) System Administration Commands hatimerun(1M)
NAME
hatimerun - run child program under a timeout
SYNOPSIS
/usr/cluster/bin/hatimerun -t timeOutSecs [-av] [-e exitcode]
prog args
/usr/cluster/bin/hatimerun -t timeOutSecs [-v] [-e exitcode]
[-k signalname] prog args
DESCRIPTION
The hatimerun utility provides a convenient facility for timing out the execution of another child, program. It is useful when programming
in scripting languages, such as the Bourne shell. See sh(1).
The hatimerun utility runs the program prog with arguments args as a child subprocess under a timeout, and as its own process group. The
timeout is specified in seconds, by the -t timeOutSecs option. If the timeout expires, then hatimerun kills the child subprocess's process
group with a SIGKILL signal, and then exits with exit code 99.
You can run this command in the global zone or in a non-global zone. The command affects only the global or non-global zone in which you
issue the command.
OPTIONS
The following options are supported:
-a Changes the meaning of hatimerun radically: instead of killing the child when the timeout expires, the hatimerun utility sim-
ply exits, with exit code 99, leaving the child to run asynchronously.
It is illegal to supply both the -a option and the -k option.
-e Changes the exit code for the timeout case to some other value than 99.
-k Specifies what signal is used to kill the child process group. The possible signal names are the same as those recognized by
the kill(1) command. In particular, the signal name should be one of the symbolic names defined in the <signal.h> descrip-
tion. The signal name is recognized in a case-independent fashion, without the SIG prefix. It is also legal to supply a
numeric argument to the -k option, in which case that signal number is used.
It is illegal to supply both the -a option and the -k option.
-t Specifies the timeout period, in seconds.
-v Verbose output, on stderr.
EXIT STATUS
If the timeout occurs, then hatimerun exits with exit code 99 (which can be overridden to some other value using the -e option).
If the timeout does not occur but some other error is detected by the hatimerun utility (as opposed to the error being detected by the
child program), then hatimerunhatimerun exits with exit code 98.
Otherwise, hatimerun exits with the child's exit status.
The hatimerun utility catches the signal SIGTERM. It responds to the signal by killing the child as if a timeout had occurred, and then
exiting with exit code 98.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
kill(1), sh(1), attributes(5)
Sun Cluster 3.2 10 Apr 2006 hatimerun(1M)