Dan Here is the excerpt of my program that does not print to the terminal window when run on UNIX:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> elsif ( $tmpar[0] == 999999 ) { print "Number of records in the input file:\t\t$reccnt\n"; print "Number of corrupt records in file:\t\t$ctcnt\n"; print "Number of zero second tickets in file:\t\t$zerolen\n"; print "Number of non-interconnect calls in file:\t$nictcll\n"; print "Number of incoming calls in file:\t\t$incll\n"; print "Number of outgoing calls in file:\t\t$outcll\n"; print "Number of roaming transit calls in file:\t$rtcll\n"; print "Number of call forward calls in file:\t\t$cftcll\n"; print "Number of overflow calls in file:\t\t$ovfcll\n"; $traout = makeTra($rectot); if ( length($traout) != 45 ) { print "Incorrect length for Trailer record!\n"; print $traout,"\n"; exit; } open(OF_IAC,">>$outfile"); print OF_IAC "$traout\012"; close(OF_IAC); print "Processing Complete!\n"; exit; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> The trailer of the file is added, but the stats are not printed??? On a windows machine the stats are printed. Regards, Charles Scheepers -----Original Message----- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 16:29 To: Charles Scheepers; [EMAIL PROTECTED] Subject: RE: print!?! > The program prints to a number of different places. Files --> > data output and some logs. Then I also need to print some > error info to the terminal (STDOUT). It is this last part > that is not happening on UNIX, but it does on DOS. What is output when you run it from the command line the same way: In DOS: In Unix: > > Regards, > > Charles Scheepers > > -----Original Message----- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: 07 July 2003 17:20 > To: Charles Scheepers; [EMAIL PROTECTED] > Subject: RE: print!?! > > > > > Hi > > Howdy! > > > > > > > > I wrote a program to read hex data and format the records and > > then output the formatted records in ASCII format to a file. > > > > The program is supposed to work on Win32 and UNIX (HP-UX). > > > > Everything works fine except for information (stats and > > errors) that I want to print to the screen. > > > > > > > > For a statement like: > > > > print "Number of records in file:\t\t$reccnt\n"; > > What is it printing to? A browser, Console, TK Window? > > Can you just do a simple : > > print "Howdy World"; > Without any variables incase they contain something that the > displaying window can't handle? > > That way we can narrow it down to the output,output location, > or output method and go from there. > > HTH > > DMuey > > > > > It does not print to the screen on UNIX, but it does on > > Win32. I suspect this has something to do with STDOUT, but I > > am not sure what is happening. What do I need to do to ensure > > the information is printed to the screen? > > > > > > > > Thank you, > > > > > > > > Charles Scheepers > > > > > > This communication is private, privileged and confidential > > intended only for the named addressee. Any recipient who is > > not a named addressee is not entitled to retain, copy, > > disseminate or take action in reliance upon this > > communication. If you have received it in error, please > > notify the sender immediately and destroy the original. > > > > This communication is private, privileged and confidential > intended only for the named addressee. > Any recipient who is not a named addressee is not entitled to > retain, copy, disseminate or take > action in reliance upon this communication. If you have > received it in error, please notify the > sender immediately and destroy the original. > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This communication is private, privileged and confidential intended only for the named addressee. Any recipient who is not a named addressee is not entitled to retain, copy, disseminate or take action in reliance upon this communication. If you have received it in error, please notify the sender immediately and destroy the original. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]