Restart logic in script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Restart logic in script
# 1  
Old 11-04-2014
Restart logic in script

I have a question regarding the restart logic in scripts.

I have a script named "JOB1" which has 5 steps and every step has a program.
Suppose my script fails at 4th step and the first 3 steps have completed successfully. I want to start my script from 4th step directly without doing any change in my original script or deleting the previous 3 steps from the script.

How can I do this?

Nowadays when I want to start in this scenario I have to create another script where I have to keep 4th and 5th step in my script and run it or have to delete the first 3 steps and run the last 2.
# 2  
Old 11-04-2014
Hi,

You should find everything that you need in this thread here.

Regards

Dave

Last edited by gull04; 11-04-2014 at 06:05 AM.. Reason: Typo
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script will keep checking running status of another script and also restart called script at night

I am using blow script :-- #!/bin/bash FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not if then # echo "process found" exit 0; else echo "process not found" exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies

2. Shell Programming and Scripting

Restart Logic for a Korn Shell Master Script

Hello All, I was wondering if someone can help me to develop restart logic for a Korn Shell program (a master script) that I am developing. The program is design to invoke a series of child processes (Korn Shell Scripts) whose function is to create a series of load files on a specified mount... (0 Replies)
Discussion started by: jonesdk5
0 Replies

3. Shell Programming and Scripting

restart logic in a script

Hi I have a script as follows Function func0 <Set of validations done> Function Func1 <Set of commands and some of the variables set> Function Func2 <Set of commands and some of the varibales set> Function Func3 <Call a job(It is a datastage job which is called> Main job Call func0... (2 Replies)
Discussion started by: dnat
2 Replies

4. Shell Programming and Scripting

perl script - adding restart logic

Hi all I have written a perl script which looks at one file and if new entry is made to that file then it runs some scripts depending upon the entry made to file( used File::Tail module ) . This script is running as “root” in nohup mode. Script works fine but I want to add restart logic. If... (4 Replies)
Discussion started by: zedex
4 Replies
Login or Register to Ask a Question