02-24-2018
Why use nohup ?
Why generate scripts from scripts ?
A simple while loop reading one configuration file in one script should
Spawn the required rman backup processes in background.
After the while loop has finished (spawned the processes), using wait, wait for those to finish.
After that line, a invoke a backup to tape.
This is most rudimentary, and it will not check success of background processes.
But the code you posted only counts processes, so i guess that is not the requirement.
As i see it, you wish your program to know if the processes which backup database on some filesystem are done or do not exist anymore, then issue a tape backup on that filesystem.
Is this correct ?
Regards
Peasant.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm getting rather frustrated with an interactive script I'm writing.
The script is divided up, with section for setting variable at the top, then functions (which make up most of the script) then basically a line at the end which calls the first function- the program moves between the... (5 Replies)
Discussion started by: alexop
5 Replies
2. UNIX for Advanced & Expert Users
i have scipt which is calling some
other scripts and some built-in utilities like SED, find etc..
i started this script using nohup
(e.g: nohup scriptname &)
now i want to kill this script and all the child processes
of this script.
the problem is, process id of child processes are... (4 Replies)
Discussion started by: gfhgfnhhn
4 Replies
3. UNIX for Advanced & Expert Users
Hi,
I want to write a script which should be run only on foreground. Is there any way that the script can check itself whether it was run using nohup or ksh and if the user runs the script using nohup then it should prompt the user to run it using ksh?
If (The user triggers the script using... (4 Replies)
Discussion started by: RRVARMA
4 Replies
4. Shell Programming and Scripting
Im writing a script in the Ksh, as the title suggests.
OK so im sincerely tring to be lazy. Im trying to make a script that will use another file as a sort of variable library
So basically i dont need to include the variables themselves, just want to make a reference to the file, so the... (2 Replies)
Discussion started by: Demon002
2 Replies
5. Shell Programming and Scripting
Hi
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
For example
-------
Script ABC
-------
a.ksh
b.ksh
c.ksh
I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies
6. Shell Programming and Scripting
I recently patched a RHEL5 host from 5.2 to 5.5. There are some scripts that simply do a ps and grep to check for itself before proceeding. I personally don't like the way the scripts are written and would have done it differently. Before I can proceed with patching the production servers, I... (12 Replies)
Discussion started by: bwhitehd
12 Replies
7. Shell Programming and Scripting
Hi,
I wanted to know the exact behavior of the shell scripts in the below scenario.
I have 2 scripts - a.ksh and b.ksh
Both these scripts call a 3rd script xyz.ksh.
What will happen if both a.ksh and b.ksh run at the same time?
What will happen if a.ksh starts 2-3 seconds before b.ksh?... (3 Replies)
Discussion started by: aster007
3 Replies
8. Shell Programming and Scripting
So this one just plain confuses me. I have a bunch of somewhat CPU intensive processes that all communicate using a shared memory region. Some of these programs are threaded and some also change the scheduling to FIFO or round robin. The good news is that everything works as long as I spawn... (3 Replies)
Discussion started by: talkingfennel
3 Replies
9. 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
10. Shell Programming and Scripting
I have a long running ksh script that I need to run with "nohup" in the backgound which is all well and good but at the very start of the script it needes to output to the screen to query the user and accept a response before continuing.
Any thoughts on how to accomplish this other than... (11 Replies)
Discussion started by: twk
11 Replies
LEARN ABOUT CENTOS
backup_apropos
BACKUP_APROPOS(8) AFS Command Reference BACKUP_APROPOS(8)
NAME
backup_apropos - Displays each help entry containing a keyword string
SYNOPSIS
backup apropos -topic <help string> [-help]
backup ap -t <help string> [-h]
DESCRIPTION
The backup apropos command displays the first line of the online help entry for any backup command that has in its name or short
description the string specified by the -topic argument.
To display the syntax for a command, use the backup help command.
OPTIONS
-topic <help string>
Specifies the keyword string to match, in lowercase letters only. If the string is more than a single word, surround it with double
quotes (" ") or other delimiters.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The first line of a command's online help entry names it and briefly describes its function. This command displays the first line for any
backup command where the string specified with the -topic argument is part of the command name or first line.
EXAMPLES
The following example lists all backup commands that include the word "tape" in their names or short descriptions:
% backup apropos tape
labeltape: label a tape
readlabel: read the label on tape
scantape: dump information recovery from tape
status: get tape coordinator status
PRIVILEGE REQUIRED
None
SEE ALSO
backup(8), backup_help(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BACKUP_APROPOS(8)