Hello,

Im after some help with running one script from within another. Both are CGI files.

In thoery: The first determines if the program has been loaded from command line or web interface. It then gets all the information passed in as parameters and passes those to the second.

What i need to know is:
1) How to run the second script from calling it in the first. (with something like execute->BlastTool.cgi;)
2) Can i pass in all of these variables to the second, and if so do they have to be in reference form or other.

my $blastSeq = ""; # holds the sequence my $blast_filehandle = ""; # file handlers my $ref_filehandle = ""; my $oldRefFile = ""; # old reference file path and name my $species_filter = ""; my $chromo_filter = ""; # filters my @species_filter; my @chromo_filter; my @advanced_filter; my $state; # determines the state of input my $email; ## has email variables been activated my $show_all; # show summary info check box my $show_filter; # show only filtered hits check box # time stamp parameters my $date; my @OrigRef; # arrays of the files my @blastLine; my @refsubjects; # reference to empty array my $refalignment = {}; # builds alignments from reference file my @refelements; # stores the split GI line from reference line my @blast_elements; # stores the split GI line from new blast line my %refList;# holds the accessions from the GI line in ref file my %blastList; # holds the accessions from the GI line in blast file my $boolean; # determines the array to use for the output my @subjects; # stores the whole GI line from blast file my $alignment = {}; # holds alignments from blast file

There is quite a lot......
Any ideas....

cheers,
MonkPaul


In reply to Executing one script with another by MonkPaul

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.