Hi,

newbie to the forum -- so if this item has been submit I apologize and hope
you can just point me to the correct FAQ or thread....



Tried on
        AIX
        PERL version 5.005_3 for aix
        command line
Program works perfectly.

Tried on
        AIX
        PERL version 5.005_3 for aix
        Telnet into the box (telnet, hostname combination) then run the program
from telnet command line
Program works perfectly.

What program does/displays on-screen

on-screen response

> perl nma.pl cf
...following display is immediate
 This is a customizable heartbeat message.

...following display is as error as created/logged in another file by
another program and then read by current perl script nma.pl
IVR Call Flow Error
Severity: Information
Date: 2002-07-09 12:41:10
TN:
Service:
Error Number: CF201
Error Title: eSM Connection Reset Alert
Error Detail: Resetting an eSM connection 1

... the following message is printed on-screen everyx minutes
 This is a customizable heartbeat message.

...the program keeps running printing either a heartbeat message at xminutes
or if any new error are found in the file in which this script is monitoring


Tried on:
        SUN version:
        Telnet session via a (telnet, ip, port combination)
        remote PERL version 5.005_3 for aix

Tried on:
        Intel Windows 2000
        OS Telnet session via a (telnet, ip, port combination)
        remote PERL version 5.005_3 for aix

Through a telnet session the program performs the correct functions and
logic, but does not display properly.

The perl program is called and running correctly via a tcp call to the PERL
program in the inetd.conf file.

What program does/displays on-screen

on-screen response

> telnet 144.148.22.16 9103
...following display is immediate
Trying.... 144.148.22.16
Connected to 144.148.22.16
Escape character is '^]'.


....nothing displays, until several errors are created/logged in another log
file, which is where the current script reads and reformats and using the
perl "print" command without any parameters print the message to the
standard out.  It seems as if the standard out needed a bunch more
information in a buffer before releasing all of the data to the standard
output and therefore now the print statements can be seen on-screen.

...after a good amount of data has been printed out
 This is a customizable heartbeat message.

... the following message is an example of one of the errors printed screen
as new errors are being created/logged in another file...
IVR Call Flow Error
Severity: Information
Date: 2002-07-09 12:41:10
TN:
Service:
Error Number: CF201
Error Title: eSM Connection Reset Alert
Error Detail: Resetting an eSM connection 1

... the following message should be printed on-screen everyx minutes, before
or after errors are printed on-screen
 This is a customizable heartbeat message.

...the program should keep running printing either a heartbeat message on
xminutes or if an error appears in the log file which this program is
monitoring then a formatted error


... whenever the telnet session finally displays the information all of the
beginning information/text does appear, but sometimes in the middle of a
string the characters are cut off because the buffer does not contain the
rest.

        Ex.  ... 1 heartbeat message printed
               .... 7 error messages printed
               ..... then the following
                IVR Call Flow Error
Severity: Information
Date: 2002-07-09 12:41:10
TN:
Service:
Error Number: CF201
Error Title: eSM Connection Reset Alert
Error Detail: Rese

...the rest of the message will be sent when the next "chunk" of information
is sent to the telnet Standard Output.

Anyone have any ideas of PERL configurations and inetd.conf or maybe the
PERL print statement having difficulty with telnet through the inetd.confg
file.

Regards,

jason

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to