Comm.pl and Linux (2.2 or greater) 
Author Message
 Comm.pl and Linux (2.2 or greater)

I haven't seen much posted about the Comm.pl ( expect lookalike ) in the
past
year or so.

Has anyone had any difficulty with open_proc( in Comm.pl ) under linux
2.2 or above?

The Comm.pl is version 1.8.

I have a script that worked fine under an old 2.0 kernel. It works fine
under
solaris.  Even the open_port works just fine.  It appears to be some
confusion
between what the pts is and what the Comm.pl thinks it is. Says rite off
the bat that
it is using Solaris minor numbers (doesn't sound too good there).

./monitor_2001_us

getpty_svr4:
stat(Comm'PTY)=(773,193884,8630,1,0,0,1282,0,991087292,991087292,965006603,4096,0),
6=1282
ptsname not found, using Solaris minor numbers
rdev=1282
slave=/dev/pts/1282, ptsname(4)=/dev/pts/1282
system (pt_chmod 4)
could not open slave, /dev/pts258, errno=Permission denied at
/usr/local/COMM/Comm.pl line 1342.

When I tried running it as root to at least find the next problem I got:

getpty_svr4:
stat(Comm'PTY)=(773,193884,8630,1,0,0,1282,0,991088149,991088149,965006603,4096,0),
6=1282^M
ptsname not found, using Solaris minor numbers^M
rdev=1282^M
slave=/dev/pts/1282, ptsname(4)=/dev/pts/1282^M
system (pt_chmod 4)^M
stty: standard input: Inappropriate ioctl for device^M
getpty_svr4 returning (/dev/ptmx,/dev/pts258)^M
open_proc: mypid=10222, $PIDS{proccommutils000001} = 10228^M
 *main'proccommutils000001 = *Comm'proccommutils000001 ^M
 *main'proccommutils000002 = *Comm'proccommutils000002 ^M
open_proc returning: pty_handle=proccommutils000001 ^M
show -- before  after show comm^M^M
 err  match ^M
open_proc: mypid=10228, $PIDS{proccommutils000001} = 0^M
do_tty_child: ( proccommutils000002, /dev/pts258, /usr/local/bin/kermit
-B -l /dev/ttyS0 -b 38400 )^M
expect: checking pid 10228 ^M
expect: pid 10228 gone, returning EOF^M
 .. after con match is "" err "EOF" before "show comm^M^M
con^M^M

Any ideas?  Really would like an updated version of this useful module.
Thought there
was talk of a Chat::ipc or something.

Thanks,

Jim Ray



Sat, 15 Nov 2003 06:29:29 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Comm.pl good on Linux, bad on HP-UX

2. Comm.pl works fine on Linux, not on SunOS

3. Comm.pl and Linux

4. Comm.pl good on Linux, bad on HP-UX

5. Comm.pl works on Linux?

6. Port of Comm.pl to Linux

7. Comm.pl and Linux

8. Announcing menu.pl Version 2.2

9. ANNOUNCE: Comm.pl, a new expect/chat2.pl pkg, Beta1

10. Comm.pl information

11. Comm.pl on hpux 10.20

12. Where is Comm.pl

 

 
Powered by phpBB® Forum Software