|XP is just a number|
Need to Execute msiexec using Net::Telnetby tarunmudgal4u (Sexton)
|on Aug 26, 2012 at 20:56 UTC||Need Help??|
tarunmudgal4u has asked for the
wisdom of the Perl Monks concerning the following question:
There is one situation where I want to execute msiexec command line on remote machine using Net::Telnet.
When I execute some simple ipconfig/hostname like commands, I get proper output. but when I execute msiexec with multiple long parameters, it doesn't work. Please see below script-
Here, I've tried different ways to create my command line, but, none of them worked. From my local machine, when I execute this script, output shows command ran successfully on remote machine yy.yy.yy.yy but when I check it personally on yy.yy.yy.yy machine, this command didn't get executed there. Then I ran the same command on remote machine which i'm able to see inside "inputlogs.txt" file and it ran successfully.
While investing more on this, I ran a command to map my shared network drive on remote machine. you can also see this command in the above code(I've commented out that line #$command = "ipconfig && net use J: \\\\yy.yy.yy.yy\\Public_Share\\Tarun";). Here also, I get "command completed successfully" message in inputlogs.txt wherein I didn't see any mapped network drive on rempte machine later.
Can anybody please help me out?? I would really appreciate any help or suggestion.