that may be one of the reason...
but i am not using backticks for all the commands...

today my program hung at following location

system "DTSRun \/S \"test_box\\TSQL02\" \/N \"Weekly
mfdf Cubes\" \/V
\"{FE3888AE-3ABB-4A4C-84CF-EB12BF466177}\" \/L
\"$dts_err_file\" \/W \"-1\" \/E";

Here i am not using any backticks ?

i am suspecting do we need to handle any signals in my
program ?


thanks
-madhu


-madhu


--- Tim Johnson <[EMAIL PROTECTED]> wrote:
> 
> Oh, there's your problem.  Put the system command in
> quotes, not backticks.
> Backticks are a special quote-like operator that
> runs the command in as if
> it was run on the command-line and then passes the
> results back.  So you
> would use backticks like this:
> 
> my $result = `command`;
> 
> -----Original Message-----
> From: Madhu Reddy [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 30, 2003 9:24 AM
> To: Tim Johnson; [EMAIL PROTECTED]
> Subject: RE: PERL HANG on WINDOWS AND WAITING FOR TO
> PRESS ENTER
> 
> 
> Hi,
>  I am already re-directing erros messages to file...
> and i am sure that there were no erros.
> even if there are some erros..it should come out
> from
> system command and should go to next step right ?
> 
> following is my system command
> 
> system `bteq <$bteq_script 2>$bteq_err  >$bteq_out`;
> 
> thanks
> -madhu
> 
> --- Tim Johnson <[EMAIL PROTECTED]> wrote:
> > 
> > The problem is probably in your system() command. 
> I
> > would recommend
> > redirecting STDERR to a file to see what messages
> > you are getting.
> > 
> > Try putting:
> > 
> >    open(STDERR,">error.log") || die "$!\n";
> > 
> > at the beginning of the section with the system
> > commands.
> > 
> > If you are not on a Win32 system, then I think it
> > gets a little more
> > complicated because you might have to trap the
> > STDERR and make a separate
> > file handle to save the old STDERR in so that you
> > can put it back later, but
> > this shouldn't be necessary in Windows. 
> > 
> > -----Original Message-----
> > From: Madhu Reddy [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 30, 2003 8:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: PERL HANG on WINDOWS AND WAITING FOR TO
> > PRESS ENTER
> > 
> > 
> > Hi,
> >   When i run perl programs, some times it will
> hang
> > in
> > the middle of program...and when i press <ENTER>
> > then it is going to next step..
> > 
> > But it will not happen all the times...
> > 
> > once some times it is hapenning....
> > 
> > i don't know what could be the reasons...
> > 
> > my plat form is Windows 2000 and i am using perl
> 5.8
> > 
> > following is my sample program...
> > and i use lot of system commands in my script....
> > 
> > is system command giving problemm
> > 
> > Each time my program will hang after executing
> > system
> > command....
> > 
> > Can any one help on this..
> > I appreciate u r help...
> > 
> > thanks in Advance
> > -Madhu
> > 
> > 
> > 
> > 
> > ______
> > #!C:\perl\bin\perl -W
> > 
> > 1. get the file name from C:\temp
> > 2. read the file close
> > 
> > 3. run some system command (system "bteaq <a.bteq
> > >out.txt")
> > 
> > 4. print some message
> > 
> > 3. run some system command (system "mload <a.mload
> > >out1.txt")
> > 
> > print some message
> > 
> > and again some system command
> > --------
> > 
> > 
> > 
> > 
> > 
> > 
> > ____
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> > -- 
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> -- 
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to