02-16-2009
Thanks pludi
I am using sql loader in unix and inserting data to the database. and i have no idea as to how to make the script restart able.
an example would help a lot
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
script that ask for "enter a file name" and removes that file
and asks for confirmation before deletion
if executed the output might look as
enter the filename you intent to deleted
remover file? Y
file deleterd
I knwo the comand I would use
find . -name *.* -ok rm {}\; I guess... can... (1 Reply)
Discussion started by: LiTo
1 Replies
2. Shell Programming and Scripting
Hi,
First, let me explain the issue I am trying to solve. We have a lot of expect scripts with the duplicated send/expect commands. So, I'd like to be able to extract the duplicated code into the common scripts that can be used by other scripts.
Below is my test where I am trying to call... (0 Replies)
Discussion started by: seva
0 Replies
3. UNIX for Dummies Questions & Answers
what is the difference between login and profile scripts versus the rc scripts? (1 Reply)
Discussion started by: rookie22
1 Replies
4. Shell Programming and Scripting
Hi,
I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies
5. Shell Programming and Scripting
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
4 Replies
6. Shell Programming and Scripting
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies
7. Shell Programming and Scripting
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies
8. Shell Programming and Scripting
Hi all, I'm wondering if you could give me some advice. I am new to scripting and am getting rather frustrated that i can get my script to call another script if certain criteria is met, via command line, but I cannot get the same script to work thru the cron jobs.
My first script monitors... (8 Replies)
Discussion started by: echoes
8 Replies
9. Shell Programming and Scripting
Dear all,
I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.
Here is the snippet:-
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
RAS(9) BSD Kernel Developer's Manual RAS(9)
NAME
ras_lookup, ras_fork, ras_purgeall -- restartable atomic sequences
SYNOPSIS
#include <sys/types.h>
#include <sys/proc.h>
#include <sys/ras.h>
void *
ras_lookup(struct proc *p, void *addr);
int
ras_fork(struct proc *p1, struct proc *p2);
int
ras_purgeall(struct proc *p);
DESCRIPTION
Restartable atomic sequences are user code sequences which are guaranteed to execute without preemption. This property is assured by check-
ing the set of restartable atomic sequences registered for a process during cpu_switchto(9). If a process is found to have been preempted
during a restartable sequence, then its execution is rolled-back to the start of the sequence by resetting its program counter saved in its
process control block (PCB).
The RAS functionality is provided by a combination of the machine-independent routines discussed in this page and a machine-dependent compo-
nent in cpu_switchto(9). A port which supports restartable atomic sequences will define __HAVE_RAS in <machine/types.h> for machine-indepen-
dent code to conditionally provide RAS support.
A complicated side-effect of restartable atomic sequences is their interaction with the machine-dependent ptrace(2) support. Specifically,
single-step traps and/or the emulation of single-stepping must carefully consider the effect on restartable atomic sequences. A general
solution is to ignore these traps or disable them within restartable atomic sequences.
FUNCTIONS
The functions which operate on restartable atomic sequences are:
ras_lookup(p, addr)
This function searches the registered restartable atomic sequences for process p which contain the user address addr. If the
address addr is found within a RAS, then the restart address of the RAS is returned, otherwise -1 is returned.
ras_fork(p1, p2)
This function is used to copy all registered restartable atomic sequences for process p1 to process p2. It is primarily called from
fork1(9) when the sequences are inherited from the parent by the child.
ras_purgeall(p)
This function is used to remove all registered restartable atomic sequences for process p. It is primarily used to remove all reg-
istered restartable atomic sequences for a process during exec(3) and by rasctl(2).
CODE REFERENCES
The RAS framework itself is implemented within the file sys/kern/kern_ras.c. Data structures and function prototypes for the framework are
located in <sys/ras.h>. Machine-dependent portions are implemented within cpu_switchto(9) in the machine-dependent file
sys/arch/<arch>/<arch>/locore.S.
SEE ALSO
rasctl(2), cpu_switchto(9), fork1(9)
Gregory McGarry, "An Implementation of User-level Restartable Atomic Sequences on the NetBSD Operating System", Proceedings of the FREENIX
Track: 2003 USENIX Annual Technical Conference, USENIX Association,
http://www.usenix.org/publications/library/proceedings/usenix03/tech/freenix03/full_papers/mcgarry/mcgarry.pdf, 311-322, June 9-14, 2003.
HISTORY
The RAS functionality first appeared in NetBSD 2.0.
BSD
April 17, 2010 BSD