Re: Any logic plz ...
- From: Bill Marcum <marcumbill@xxxxxxxxxxxxx>
- Date: Thu, 21 May 2009 01:13:04 -0400
On 2009-05-21, aki <akhileshrawat007@xxxxxxxxx> wrote:
Write a function to process errors.
Hi Folks ,
I running short of logic to implement one functionality in a
framework.
May be , anyone of you could help me on this ... thanks
I have a some set of shell scripts. One of them is master script (MS )
which controls all other scripts(S1,S2, S2...Sn).
Master script handle or controls output of other scripts.
i want to implement one functionality:
eg:
MS runs other scripts in some logical sequence :
run S1
run S2
run S3
.....Sn
Si contains set of actions , if not succcessul will return error :
Action 1
return 1 if action fails.
Action 2
return 1 if action fails.
Action 3
return 1 if action fails.
..... n
Presently if Action 2 fails of Si, it will return error to MS . MS
will process the error and runs next script S(i+1) .
Now what i want to do is , MS to continue running Si with Action
3 ..
I am not getting any clue how will i handle failure in MS and
continue processing the same until the end .
I will be thankful for any help.
Action 1 || error_function
Action 2 || error_function
....
.
- Follow-Ups:
- Re: Any logic plz ...
- From: aki
- Re: Any logic plz ...
- References:
- Any logic plz ...
- From: aki
- Any logic plz ...
- Prev by Date: Any logic plz ...
- Next by Date: Re: Any logic plz ...
- Previous by thread: Any logic plz ...
- Next by thread: Re: Any logic plz ...
- Index(es):
Relevant Pages
|