Re: ODM telnet has Pipe and Terminal errors

From: Bill Verzal (Bill_Verzal@BCBSIL.COM)
Date: Wed Oct 16 2002 - 15:07:59 EDT


Because when you run it from a command line, you have a terminal open.
Error messages won't.
--------------------------------------------------------------------------------------------------------

Bill Verzal
Technical Consultant
Forbes Technical Consulting
(312) 653-3684
bill_verzal@bcbsil.com
MailStop: 27.202B

                    "Patrick B.
                    O'Brien" To: aix-l@Princeton.EDU
                    <pobrien@DOIT. cc:
                    NV.GOV> Subject: ODM telnet has Pipe and Terminal errors
                    Sent by: "IBM
                    AIX Discussion
                    List"
                    <aix-l@Princet
                    on.EDU>

                    10/16/2002
                    01:59 PM
                    Please respond
                    to "IBM AIX
                    Discussion
                    List"

AIX'ers

I'm trying to tell a P660 4.3.3.10 ODM entry in errnotify to telnet a
message to our Mainframe's Console. I'm getting the following errors;

No environment-specified terminal type.

/usr/local/bin/ftptheerror: There is no process to read data written to a
pipe.

I can run this ftptheerror script at a command line and this script runs
great, no problem.

# odmget -q "en_name='perm'" errnotify

errnotify:

en_pid = 0 en_name = "perm" en_persistenceflg = 1 en_label = "" en_crcid
= 0 en_class = "H" en_type = "PERM" en_alertflg = "" en_resource = ""

en_rtype = "" en_rclass = "" en_symptom = "" en_method
= "/usr/local/bin/ftptheerror >> /tmp/ftptheerror.out 2>&1"

Below is most of the ftptheerror script. It works fine from a command line;

( sleep 10 echo tso sleep 1 echo user password echo SE $mainMsg echo logoff
sleep 3 ) | telnet -e vt100 tcp/ip_address

I've tried messing with the sleep times but no joy. Any thoughts
please-thank you!



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:16 EDT