From: Chris S. <cas...@pe...> - 2003-04-22 13:19:49
|
A copy and paste of your code, replacing the: $mtnm->spawn("csteMTNM -c"); with: $mtnm->spawn("ls"); seems to indicate success. Are you sure your Expect install is kosher? Chris At 02:54 PM 4/22/2003 +0200, Sascha Gagalon (02838) wrote: >thx, my fault. > >now it looks like that: > >#!/tools/perl-5.6.0.sol26/bin/perl > >#use strict; >$^W = 1; # warnings too > > >use Expect; >#$Expect::Exp_Internal = 1; >#$Expect::Debug = 1; > > >&start; >$mtnm->hard_close(); >exit(0); > > > >sub start >{ > $mtnm = new Expect; > $mtnm->raw_pty(1); > $mtnm->spawn("csteMTNM -c"); > $mtnm->log_file("rmtest.log", "w"); > $mtnm->expect(30, "STARTUP FINISHED\r\n"); >} > > >and the error message tells me: > >ERROR: cannot find method `raw_pty' in class Expect at ./rmtest.pl line 25 > >Cannot exec `': > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Expectperl-discuss mailing list >Exp...@li... >https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |