08-11-2011
env_file seems to work
I found this code defining env_file for an Runas_Alias in a similar thread. It seems to work pretty well:
Defaults>DMALIAS env_file=/homedir/.shrc
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi in vi, i have a file and i wanted to replace all wnix to unix. is the below correct.
c/wnix/unix g...
i have tried , and the above is not right...
help? (7 Replies)
Discussion started by: yls177
7 Replies
2. Shell Programming and Scripting
Hi
My source database is seibel and the target is oracle. I need to check the count for source query and target query. if it is equal then i need to send and success mail to an email id. If it is not equal need to send an failure mail to an email id.
pl let me know about the script in ksh.
... (2 Replies)
Discussion started by: ksmbabu
2 Replies
3. Shell Programming and Scripting
I need to write a shell script to transfer the files every hour from source - target server.
The cron job should be running every hour and shouldn't copy already copied files to the remote server ?
I was able to write intial script but not able to get the logic for (in the next run it should... (12 Replies)
Discussion started by: radhirk
12 Replies
4. UNIX for Dummies Questions & Answers
I have checked the man page ,which says :
The -H (HOME) option sets the HOME environment variable to the homedir of
the target user (root by default) as specified in passwd(5). By default,
sudo does not modify HOME
But I have tried below command:
#... (1 Reply)
Discussion started by: Michaelw321
1 Replies
5. Shell Programming and Scripting
Hi All,
Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution.
Is there a utility/command using which we can connect to target host ?
Please suggest.
Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
6. Shell Programming and Scripting
Hi,
I am new to DB2 and in need of urgent help.
Here we have about 100 queries (SQL) that have been manually executed to retrieve totals from different tables
and post it to Excel spreadsheet. Is there any way I can create a shell script as a wrapper and execute
these queries and create a... (5 Replies)
Discussion started by: bhaskar v
5 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi guys...please any one help me ....
how to copy files from source to target location
if 5 files copied successfully out of 10 files then implement success=10
and if remaining 5 files not copied successfully then count error=5
how to implement this condition with in loop
i need code linux... (0 Replies)
Discussion started by: sravanreddy
0 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
how to count number of files successfully copied while coping files from source to destination path
ex:10 files from source to target location copying
if 8 files copied successfully then
echo successfully copied=8
failure=2 files
if two files get error to coping files... (2 Replies)
Discussion started by: sravanreddy
2 Replies
9. Shell Programming and Scripting
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies
LEARN ABOUT OSF1
thread_halt_self
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)