in reply to Re: Need to Execute msiexec using Net::Telnet
in thread Need to Execute msiexec using Net::Telnet
Hi Philip,
I used these commented lines just to show that I've tried all these options, but, none of them is working :(. For you, I've copied lines of code that is being executed. Please see below code-
The output of this command seen from the "inputlogs.txt" is mentioned below-use Net::Telnet; BEGIN { $|=1 } $user = "administrator"; $pass = 'pass'; $telnet = new Net::Telnet ( Timeout=>20, Errmode=>'die', Prompt => '/[ +%#>] ?$/', Dump_Log=>"dumplogs.txt", Input_log=>"inputlogs.txt", O +utput_log=>"outputlogs.txt"); $telnet->open('xx.xx.xx.xx'); $telnet->login(Name=>$user, Password=>$pass, Prompt => '/[%#>:] ?$/'); $command = qq(msiexec \/qn \/i \\\\10.210.156.150\\SEP_Builds\\Jaguar\ +\Integration\\940\\DVD-SEP-EE\\SEPx64\\Sep64.msi \/norestart RUNLIVEU +PDATE=0 \/l\*v C:\\Compatibility_Automation_Temp\\SepClientInstallLog +.txt); print "command is: [$command]\n"; @output = $telnet->cmd(String=>$command); print "output is:\n@output\n"; exit;
Now, if I copy and paste the same command I see in inputlogs.txt file, this command works well on remote mahcine. but using this script, it doesn't. Please help me with this.Welcome to Microsoft Telnet Service login: administrator password: *=============================================================== Microsoft Telnet Server. *=============================================================== C:\Users\Administrator>msiexec /qn /i \\10.210.156.150\SEP_Builds\Jagu +ar\Integration\940\DVD-SEP-EE\SEPx64\Sep64.msi /norestart RUNLIVEUPDA +TE=0 /l*v C:\Compatibility_Automation_Temp\SepClientInstallLog.txt C:\Users\Administrator>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Need to Execute msiexec using Net::Telnet
by philiprbrenan (Monk) on Aug 27, 2012 at 19:19 UTC | |
by tarunmudgal4u (Sexton) on Aug 28, 2012 at 05:29 UTC | |
by philiprbrenan (Monk) on Aug 28, 2012 at 13:16 UTC | |
by philiprbrenan (Monk) on Aug 28, 2012 at 21:32 UTC | |
by tarunmudgal4u (Sexton) on Aug 30, 2012 at 09:01 UTC | |
| |
by tarunmudgal4u (Sexton) on Aug 28, 2012 at 19:09 UTC |
In Section
Seekers of Perl Wisdom