Re: Any logic plz ...



On 2009-05-21, aki <akhileshrawat007@xxxxxxxxx> wrote:


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.

Write a function to process errors.
Action 1 || error_function
Action 2 || error_function
....

.



Relevant Pages

  • Any logic plz ...
    ... I running short of logic to implement one functionality in a ... Master script handle or controls output of other scripts. ... return 1 if action fails. ...
    (comp.unix.shell)
  • Re: Any logic plz ...
    ... Master script handle or controls output of other scripts. ... i want to implement one functionality: ... return 1 if action fails. ...
    (comp.unix.shell)
  • Re: Any logic plz ...
    ... Master script handle or controls output of other scripts. ... i want to implement one functionality: ... return 1 if action fails. ...
    (comp.unix.shell)
  • Re: Software testing
    ... client I was mentoring (Larger DB apps with 100's of concurrent users). ... at testing things like web apps (for functionality and stress test), ... with test scripts made up of 50K lines and running for 8 hours. ... The design, specifically to do with the modular nature of the test ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: IE plugin for web annoyances, from maxthon
    ... i have a firewall that lacks this functionality, ... :) it seems that the scripts to do all that's necessary ... are present...i just don't know if they'll work with ie (instead of maxthon)? ... which this plugin handles well. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)