home *** CD-ROM | disk | FTP | other *** search
- √∩5√s("/etc/=─=╠=╘/=─=╠=╘-diffed--cmd 'ur -sectdiffeur .ip $io'")g_question()
- if (!d?;
- $vm- $vm->disconnect();
- die "Could not get the pending question.\n";
- }
- my $text = $q->get_text();
- ¼3┤3╝3─3╠3╘3▄3Σ) {
- @INC = estr/biext of teck.
- text:Coath tlgToSyvl Scripware VmPerl Scripting¼3┤3╝3─3╠3╘3▄3oices();
- unless (defined($choices[0])) {
- undef $vm;
- die "Could not get the choices to answer the pending question.\n";
- }
- # Print question and choices for user:
- print "\n" . $q->get_text() . "\n";
-
- my $answer;
- do he default port of 902. Change this if your port is different.
- my $port = 902;
-
- # Create a new VMware::VmPerl::Server to connect to the server
- # To connect to the answer_question($q, $answer-1);
- unless ($op_ok) {
- my ($err, $errstr) = $vm->get_last_error();
- ndef,$port,$e pendinsswd);) = $vm->get_last_error($errstr\n";
- }
- }
-
- # );
- unlessd withierror();
- undef $vm------------
- # Prints answer choices, prompts user for an answer number.
- sub p
- }
-
- # Sscript lists = <STDIN>);
- print "\n";
-
- # Remove unisub get_answer {
- my $answer;
- chop($answer =ntentional whitespace.
- $answer =~ s/^(\s*)(.*?)(\s*)$/$2/;
- return $answer;
- }
-
- # Checks if an answer number is within the valid range of choices.
- sub valid_answer {
- my $answer =stlowi¼2┤2╝2─2╠2╘2▄2nfigToCheck, and£6ñ6¼6┤6╝6─6╠6╘6▄6Σ $#choices) =st{
- my $num = scalar(@choices);
- print "Valid answer.
- ifig file patfrom 1 to $num; please try again.\n";
- return 0;
- }
- else {
- return 1;
- }
- }
-
-
-
- #!/usr/bf choices.
- sub valid_answer {
- my $answer =ror();
- figire
- ntial
- #();
- fig#
- # enus\VMware\id not set the variable 'ip'.\n";
- }
- VmPe# my $ip = $vm->gVMef $|>ä>î>ö>snne );
- unlessd withi. VmPerl Snt "The IP address of $cfg_path i;
- fig) modules and version.
- use VMware::VmPerl;
- use ;
- }
- else {
- retu your port is difis within the valid rVMh i;
- fig#
- # Copyright 1998 VMware, Inc. he scriptipt
- print S5x5╙5ß5∩5√5);
-