From: <RGi...@a1...> - 2002-03-04 14:27:20
|
> This error occured because of the way I was creating the > $exp object. I wanted to create it before spawning the > command so that I could do a $exp->log_user(0) before > the process started spitting out stuff. Ah, yes, you are a premature coder, this splitting of new() and spawn() was introduced in one of the latest beta versions and is not available in v1.12. And BTW you are right to want to do it that way... Just a few more days 'til the next release... Roland -- RGi...@cp... What I discovered > is that you can go it after just fine, as below: > > $exp = Expect->spawn ( $command, @params ); > $exp->log_user(0); > $exp->expect (..... > > So now things are working. Thought this might help > others trying to do something similar. > > Patrick > > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > |