Leser: 6
|< 1 2 3 4 ... 6 >| | 55 Einträge, 6 Seiten |
1 2 3 4
use Net::Telnet; $telnet = new Net::Telnet (); $telnet->open('PC110197'); print $telnet->cmd('CLIENT CREATE');
1
2
Can't locate object method "new" via package "Net::Telnet" (perhaps you forgot t
o load "Net::Telnet"?) at prog.pl line 2.
1 2 3 4
use Net::Telnet (); $telnet = new Net::Telnet (Timeout => 10, Errmode=>'die', Port=>1810); $telnet->open('PC110197'); print $telnet->cmd('CLIENT CREATE');
command timed-out at prog.pl line 4
1 2 3
my $telnet = Net::Telnet->new( Port => 1810 ); $telnet->open('PC110197'); print $telnet->cmd('CLIENT CREATE');
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$obj = new Net::Telnet ([Binmode => $mode,]
[Cmd_remove_mode => $mode,]
[Dump_Log => $filename,]
[Errmode => $errmode,]
[Fhopen => $filehandle,]
[Host => $host,]
[Input_log => $file,]
[Input_record_separator => $chars,]
[Option_log => $file,]
[Ors => $chars,]
[Output_log => $file,]
[Output_record_separator => $chars,]
[Port => $port,]
[Prompt => $matchop,]
[Rs => $chars,]
[Telnetmode => $mode,]
[Timeout => $secs,]);
...
The default Prompt is '/[\$%#>] $/'
grey1987+2007-11-21 13:20:20--also das problem ist immer noch, dass ich da keine Ausgabe bekommen.
|< 1 2 3 4 ... 6 >| | 55 Einträge, 6 Seiten |