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]