Unix Technical Forum

autoexpect on 5.0.7

This is a discussion on autoexpect on 5.0.7 within the Sco Unix forums, part of the Unix Operating Systems category; --> I'm sure I've used autoexpect on SCO systems in the past, but maybe not.. I tried both versions from ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 04:56 PM
Tony Lawrence
 
Posts: n/a
Default autoexpect on 5.0.7

I'm sure I've used autoexpect on SCO systems in the past, but maybe not..

I tried both versions from Skunkware. "autoexpect" by itself should,
for example, just show a shell prompt and continue from there. Instead,
everything seems to be buffered - which I expect autexpect to take care
of by itself.

I've tried this on two systems now, same results. If I start autoexpect
somewhere else, I can ssh on into the SCO and everything is fine, but
not if I ssh in and start it there..

I'm baffled..


--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 04:56 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tony Lawrence typed (on Mon, Apr 18, 2005 at 11:17:18AM -0400):
| I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
|
| I tried both versions from Skunkware. "autoexpect" by itself should,
| for example, just show a shell prompt and continue from there. Instead,
| everything seems to be buffered - which I expect autexpect to take care
| of by itself.
|
| I've tried this on two systems now, same results. If I start autoexpect
| somewhere else, I can ssh on into the SCO and everything is fine, but
| not if I ssh in and start it there..
|
| I'm baffled..


I'm not sure what you mean by "everything is buffered". I'd not run
autoexpect in years, but I just tried it on 5.0.6 and on 5.0.7, and saw no
difference in what happened, or in the resultant capture scripts.


--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 04:56 PM
Tony Lawrence
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Jean-Pierre Radley wrote:
> Tony Lawrence typed (on Mon, Apr 18, 2005 at 11:17:18AM -0400):
> | I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
> |
> | I tried both versions from Skunkware. "autoexpect" by itself should,
> | for example, just show a shell prompt and continue from there. Instead,
> | everything seems to be buffered - which I expect autexpect to take care
> | of by itself.
> |
> | I've tried this on two systems now, same results. If I start autoexpect
> | somewhere else, I can ssh on into the SCO and everything is fine, but
> | not if I ssh in and start it there..
> |
> | I'm baffled..
>
>
> I'm not sure what you mean by "everything is buffered". I'd not run
> autoexpect in years, but I just tried it on 5.0.6 and on 5.0.7, and saw no
> difference in what happened, or in the resultant capture scripts.
>
>


Boy, that is weird. I tried this on two systems, with two versions from
Skunkware - and neither work. What I mean by buffered is that nothing
is appearing on the screen - no shell prompt, no anything. If I type
commands, etc. they work, but don't appear on the screen until I type
exit, and then the script.exp (after the usual preamble) is just

set timeout -1
spawn $env(SHELL)
match_max 100000
expect eof

If I run that, I get the somewhat similar behavior - one shell prompt,
then no prompts, no apparent response to commands:

$ ./script.exp
spawn /bin/sh
$ ls


ls > /tmp/that

(ctrl-c no response - yes intr is set to ctrl-c not del)

(CTRL-\ here)


$ cat /tmp/that
cat: cannot open /tmp/that: No such file or directory (error 2)

$

Obviously some unexpected buffering going on but I do not know why..


--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 04:56 PM
John Schmidt
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tony Lawrence wrote:

> I've tried this on two systems now, same results. If I start autoexpect
> somewhere else, I can ssh on into the SCO and everything is fine, but
> not if I ssh in and start it there..


Complete and utter shot in the dark, but could it have something to do
with SSH's tty allocation? I know it's bitten me in the past, but can't
remember the details. What happens if you (*shudder*) telnet or modem
into the machine in question rather than than ssh?

JS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 04:56 PM
Tony Lawrence
 
Posts: n/a
Default Re: autoexpect on 5.0.7

John Schmidt wrote:
> Tony Lawrence wrote:
>
>> I've tried this on two systems now, same results. If I start
>> autoexpect somewhere else, I can ssh on into the SCO and everything is
>> fine, but not if I ssh in and start it there..

>
>
> Complete and utter shot in the dark, but could it have something to do
> with SSH's tty allocation? I know it's bitten me in the past, but can't
> remember the details. What happens if you (*shudder*) telnet or modem
> into the machine in question rather than than ssh?
>
> JS


Hmm.. I can't do that, but I could get someone there to try autoexpect
on the console.. not sure what I'd do if that does work though..

--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-15-2008, 04:56 PM
Tom Parsons
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tony Lawrence enscribed:
| I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
|
| I tried both versions from Skunkware. "autoexpect" by itself should,
| for example, just show a shell prompt and continue from there. Instead,
| everything seems to be buffered - which I expect autexpect to take care
| of by itself.
|
| I've tried this on two systems now, same results. If I start autoexpect
| somewhere else, I can ssh on into the SCO and everything is fine, but
| not if I ssh in and start it there..

I've some unexplained problems with expect and the lame 5.0.7 ssh but
not like this.

Could you be running afoul of the tcl/expect in /usr/gnu/bin?
--
================================================== ========================
Tom Parsons tom@tegan.com
================================================== ========================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-15-2008, 04:56 PM
Tony Lawrence
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tom Parsons wrote:
> Tony Lawrence enscribed:
> | I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
> |
> | I tried both versions from Skunkware. "autoexpect" by itself should,
> | for example, just show a shell prompt and continue from there. Instead,
> | everything seems to be buffered - which I expect autexpect to take care
> | of by itself.
> |
> | I've tried this on two systems now, same results. If I start autoexpect
> | somewhere else, I can ssh on into the SCO and everything is fine, but
> | not if I ssh in and start it there..
>
> I've some unexplained problems with expect and the lame 5.0.7 ssh but
> not like this.
>
> Could you be running afoul of the tcl/expect in /usr/gnu/bin?


Hmm.. no, that's not installed.. maybe that's the problem.. I just
installed expect, nothing else. Tcl is /bin/tcl.. so does it want the
Gnu tcl?





--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-15-2008, 04:56 PM
Tom Parsons
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tony Lawrence enscribed:
| Tom Parsons wrote:
| > Tony Lawrence enscribed:
| > | I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
| > |
| > | I tried both versions from Skunkware. "autoexpect" by itself should,
| > | for example, just show a shell prompt and continue from there. Instead,
| > | everything seems to be buffered - which I expect autexpect to take care
| > | of by itself.
| > |
| > | I've tried this on two systems now, same results. If I start autoexpect
| > | somewhere else, I can ssh on into the SCO and everything is fine, but
| > | not if I ssh in and start it there..
| >
| > I've some unexplained problems with expect and the lame 5.0.7 ssh but
| > not like this.
| >
| > Could you be running afoul of the tcl/expect in /usr/gnu/bin?
|
| Hmm.. no, that's not installed.. maybe that's the problem.. I just
| installed expect, nothing else. Tcl is /bin/tcl.. so does it want the
| Gnu tcl?

I've usually had Expect complain if it couldn't find tcl. I'm currently
using expect-5.30, tcl-8.1.1 and tclX-8.1.1 on 5.0.7

On a FreeBSD box (where it is easier to find), expect-5.38.0_3 lists
tcl-8.4.6,1 and tk-8.4.6,1 as dependencies

--
================================================== ========================
Tom Parsons tom@tegan.com
================================================== ========================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-15-2008, 04:56 PM
Tony Lawrence
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tom Parsons wrote:
> Tony Lawrence enscribed:
> | Tom Parsons wrote:
> | > Tony Lawrence enscribed:
> | > | I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
> | > |
> | > | I tried both versions from Skunkware. "autoexpect" by itself should,
> | > | for example, just show a shell prompt and continue from there. Instead,
> | > | everything seems to be buffered - which I expect autexpect to take care
> | > | of by itself.
> | > |
> | > | I've tried this on two systems now, same results. If I start autoexpect
> | > | somewhere else, I can ssh on into the SCO and everything is fine, but
> | > | not if I ssh in and start it there..
> | >
> | > I've some unexplained problems with expect and the lame 5.0.7 ssh but
> | > not like this.
> | >
> | > Could you be running afoul of the tcl/expect in /usr/gnu/bin?
> |
> | Hmm.. no, that's not installed.. maybe that's the problem.. I just
> | installed expect, nothing else. Tcl is /bin/tcl.. so does it want the
> | Gnu tcl?
>
> I've usually had Expect complain if it couldn't find tcl. I'm currently
> using expect-5.30, tcl-8.1.1 and tclX-8.1.1 on 5.0.7
>
> On a FreeBSD box (where it is easier to find), expect-5.38.0_3 lists
> tcl-8.4.6,1 and tk-8.4.6,1 as dependencies
>


Well, now I'm totally confused. I found tcl-8.1.1-VOLS.tar on
skunkware, but that doesn't include tcl - just tclsh..

Alligators, draining the swamp.. I don't want to have to care about Tcl :-)

--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-15-2008, 04:56 PM
Tom Parsons
 
Posts: n/a
Default Re: autoexpect on 5.0.7

Tony Lawrence enscribed:
| Tom Parsons wrote:
| > Tony Lawrence enscribed:
| > | Tom Parsons wrote:
| > | > Tony Lawrence enscribed:
| > | > | I'm sure I've used autoexpect on SCO systems in the past, but maybe not..
| > | > |
| > | > | I tried both versions from Skunkware. "autoexpect" by itself should,
| > | > | for example, just show a shell prompt and continue from there. Instead,
| > | > | everything seems to be buffered - which I expect autexpect to take care
| > | > | of by itself.
| > | > |
| > | > | I've tried this on two systems now, same results. If I start autoexpect
| > | > | somewhere else, I can ssh on into the SCO and everything is fine, but
| > | > | not if I ssh in and start it there..
| > | >
| > | > I've some unexplained problems with expect and the lame 5.0.7 ssh but
| > | > not like this.
| > | >
| > | > Could you be running afoul of the tcl/expect in /usr/gnu/bin?
| > |
| > | Hmm.. no, that's not installed.. maybe that's the problem.. I just
| > | installed expect, nothing else. Tcl is /bin/tcl.. so does it want the
| > | Gnu tcl?
| >
| > I've usually had Expect complain if it couldn't find tcl. I'm currently
| > using expect-5.30, tcl-8.1.1 and tclX-8.1.1 on 5.0.7
| >
| > On a FreeBSD box (where it is easier to find), expect-5.38.0_3 lists
| > tcl-8.4.6,1 and tk-8.4.6,1 as dependencies
| >
|
| Well, now I'm totally confused. I found tcl-8.1.1-VOLS.tar on
| skunkware, but that doesn't include tcl - just tclsh..
|
| Alligators, draining the swamp.. I don't want to have to care about Tcl :-)

For reasons unexplained, tcl is in tclX-8.1.1 on Skunkware
--
================================================== ========================
Tom Parsons tom@tegan.com
================================================== ========================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com