in reply to Executing one script with another

It seems that the code you posted only consits of declarations of lexically scoped variables possibly with an assignment. All in all it doesn't shed much light on what you're really after... and maybe it's just me, but the description of what you want to do is at best clumsy. I mean: I understand what you state that you want to do, but I can't see why you should do that. Try explaining, maybe there are more viable alternatives...

Replies are listed 'Best First'.
Re: Executing one script with another
by MonkPaul (Friar) on Jul 14, 2005 at 17:17 UTC
    In reply to the previous node........

    Ok,

    I get the data from either command line or WebPage.
    The first script gets the data and passes the information to the next script.
    This is not the only script though. Im trying to modulise the processes so that it wont be just the second sript here, but at least two.
    Im just trying to get this first part going so i can add the other scripts to the second stage.

    At the second stage, dependant on what was entered, either a sequence or two files, the Startup.cgi script will call BlastTool.cgi to run with the two files or run_Remote_Blast.cgi to run with the sequence.

    BlastTool.cgi will then execute a series of other modules that filter results, parse the files data, email data, or a host of other things.

    run_Remote_Blast.cgi will send the sequence to the BLAST web facilities and then return a file, ready for execution with BlastTool.cgi and its filtering and email functions.

    Hows that....

    UPDATE: in total there are around 5 scripts called from BlastTool.cgi. I am also going to implement some output to command line so the user can get output that way, need for a six script.

      Well, in any case I'm not sure this would be the best way to "modulise". How about writing suitable modules instead, each with a consistent interface and require'ing the appropriate one based on the choice you need to do?

      Alternatively I guess you may call the other CGI program passing the relevant data to it with a POST.

      My 2 Eurocents...