Hello Monks !!!!

I am working on the Perl project I am trying to invoke load_data_to_db.pl through poll_pkg_windows.pl script.When I run load_data_to_db.pl through CLI with command "perl load_data_to_db.pl 2010_06_15 2010_06_15 WINDOWS" it runs properly. But when I try to run it through poll_pkg_windows.pl it gives me just following lines as the output

2010-06-15_13-51-21: Script started

platform done is ===> Windows2010_06_15

The code of poll_pkg_windows.pl is as follows:

#!/usr/bin/perl use strict; use Cwd qw( abs_path ); my ($cwd, $above, $below, $tinc); my $Common; BEGIN { $cwd = abs_path "."; ($above, $below) = $cwd =~ m~^(.+)/pp2dev/src(/.+|)$~ or die "Not in a pp2dev source tree\n"; $Common="$above/pp2dev/src/testsuite/user"; my $tinc = "$above/pp2dev/src/testsuite/user/tinc"; unshift @INC, $tinc; unshift @INC, $Common; } use DataLoader::Configuration qw( &get_common_path &get_loader_log_file $LOADER_LOG_DIR $DATE_SEPARATOR ); use nightly::common; use DataLoader::DataLoader; use DataLoader::LogWriter; use lib &DataLoader::Configuration::get_common_path(); use Common; $windows_trunk = `rsh lcla238 -l root tail /nightly_results/today/ +WINDOWS_poll_pkg.log`; my $date = Common::get_current_date_string($sep); if($windows_trunk =~ /All done/){ print "platform done is ===> Windows".$date."\n"; my $result = `perl load_data_to_db +.pl 2010_05_15 2010_05_15 WINDOWS`; }

Kindly let me know where I am doing mistake?


In reply to A doubt about invoking perl script through other perl script by siddheshsawant

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.