0
|
1 |
#
|
|
2 |
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
#
|
|
16 |
|
|
17 |
use Net::Telnet;
|
|
18 |
|
|
19 |
$telnet = new Net::Telnet ( Timeout=>30, Errmode=>'die');
|
|
20 |
$telnet->open("192.168.0.3");
|
|
21 |
$telnet->login("any", "any");
|
|
22 |
@lines = $telnet->cmd("testexecute z:\\testdata\\scripts\\TEFLoggerTest.script");
|
|
23 |
print @lines;
|
|
24 |
@lines = $telnet->cmd("copy c:\\logs\\testexecute\\tefloggertest.htm c:\\logs\\testexecute\\tefloggertestPIPSINI.htm ");
|
|
25 |
print @lines;
|
|
26 |
@lines = $telnet->cmd("copy c:\\backupTEFc.ini c:\\system\\data\\testexecute.ini");
|
|
27 |
print @lines;
|
|
28 |
@lines = $telnet->cmd("copy c:\\backupTEFz.ini z:\\system\\data\\testexecute.ini ");
|
|
29 |
print @lines;
|
|
30 |
@lines = $telnet->cmd("del c:\\backupTEF*.ini ");
|
|
31 |
print @lines;
|