9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This bit of code works fine:
egrep -i '^rmcat' /etc/oratab |\
awk -F\: '{print $1}'|\
while read ORACLE_SID
do
But when I modified it, thus:
egrep -v '^#' /etc/oratab |egrep -v '^$' | egrep -v '^listener' \
awk -F\: '{print $1}'|\
while read ORACLE_SID
do (3 Replies)
Discussion started by: edstevens
3 Replies
2. UNIX for Beginners Questions & Answers
Hey guys, I was wondering. When I enter a command in the terminal -wcl for a word count, where is that program located in the kernel? (7 Replies)
Discussion started by: Circuits
7 Replies
3. Shell Programming and Scripting
Hi all.
Long time!!
Hope you're doing well..
I've stumbled on a peculiar siutaion here, and would expect help from this forum on a clean resolution.
We are running an rm and find command simultaneously from two different Unix sessions of the same user(let's say USER01) and on the same... (3 Replies)
Discussion started by: kumarjt
3 Replies
4. Homework & Coursework Questions
I need help program in C... :create a program that runs two processes linked oven (1 Reply)
Discussion started by: gizmo16
1 Replies
5. Shell Programming and Scripting
I have a crontab as below:
PATH=/usr/local/sbin:/bin/:..... etc etc
0 8 * * * /home/user/jobs/poll.sh 2>/dev/null 1>/dev/null
Now the script poll.sh is called at correct time and executes.
This is how poll.sh looks like
#!/bin/bash... (2 Replies)
Discussion started by: chakrapani
2 Replies
6. Programming
i am executing following program
int main()
{ char str;
FILE * fp;
int i=0; ... (4 Replies)
Discussion started by: bhavesh.sapra
4 Replies
7. UNIX for Advanced & Expert Users
I have a ksh script that executes a program with a predetermined timeout in minutes. If the program takes longer then the timeout then it still completes with a return code of 0. :confused:
I would like to determine how long the program ran. Then if it takes longer than the timeout I would... (7 Replies)
Discussion started by: 2dumb
7 Replies
8. Shell Programming and Scripting
Hi guys, I had a question last week where I asked how I check from a website hosted on windows if a process is running on on of our unix servers. Vino and Shell Life kindly replied with a perl script:
if qm') -gt 0 ] ; then
echo "Site is up"
else
echo "Site is down."
# start the... (1 Reply)
Discussion started by: drchris
1 Replies
9. UNIX for Advanced & Expert Users
I just updated sendmail to the newest version and got into this trouble. Somehow only can root can use sendmail while the other users will simply get "SMTP went away" when using pine or
"can not chdir(/var/spool/mqueue/): Permission denied
Program mode requires special privileges, e.g., root... (1 Reply)
Discussion started by: Micz
1 Replies
thread_halt_self(9r) thread_halt_self(9r)
NAME
thread_halt_self - General: Handles asynchronous traps for self-terminating kernel threads
SYNOPSIS
void thread_halt_self(
void );
ARGUMENTS
None
DESCRIPTION
The thread_halt_self routine performs the work associated with a variety of asynchronous traps (ASTs) for a kernel thread that terminates
itself. A kernel thread terminates itself (or one kernel thread terminates another kernel thread) by calling the thread_terminate routine.
The thread_halt_self routine examines the AST-related member of the thread structure pointer associated with the kernel thread that wants
to terminate itself. This thread structure pointer was returned in a previous call to kernel_isrthread or kernel_thread_w_arg and passed by
you to the thread_terminate routine. This AST-related member is set to a bit that identifies the specific AST trap associated with this
kernel thread. Based on the AST bit set in this member, thread_halt_self does the appropriate cleanup work before the kernel thread exits
from the kernel.
NOTES
A kernel thread that terminates itself must call thread_halt_self immediately after the call to thread_terminate. The reason for this is
that thread_terminate only prepares the self-terminating kernel thread to stop execution. The thread_halt_self routine completes the work
needed to stop execution of the self-terminating kernel thread by performing the appropriate cleanup work.
RETURN VALUES
None
SEE ALSO
Routines: thread_terminate(9r)
thread_halt_self(9r)