Hi,
I am trying to capture the various console login prompts
of servers attached to Terminal servers. According to the
man pages if you use an array context the pre-match and
match are returned.
I tried this approach to no avail. Can anybody please help?
I am using perl5.004 on Solaris2.5.1.
$matchop = '/[pP]assword: $/';
($prematch,$match) = $remote->waitfor("$matchop")|| die
$remote->errmsg;
print "waitfor Password = $ok\n"if $debug;
print "prematch = $prematch\nmatch=$match\n" if $debug;
this is the output:
waitfor Password = 1
prematch = 1
match=
login = 1
Thanks in advance.
--
Ian