From: Patrick B. O'Brien (pobrien@DOIT.NV.GOV)
Date: Wed Oct 16 2002 - 14:59:17 EDT
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