Could you clean up your example removing all extraneous information, comments, etc. Place a say dump($command) just before the failing statement so that we can see exactly what is being executed. Please make sure you are including /q in the command string so that msi does not attempt to start in GUI mode. Also, please make sure that you are presenting the smallest possible command that does in fact fail with all possible defaults taken so that the failure can be localized as much as possible.

As you are telnetting, you should not need an ip or host name at the front of your file name, it should be a local file on the target machine.

Ideally you should run the desired command on the target machine (by walking over to it and typing it in) to prove that you have the correct syntax before attempting to execute the command via telnet.

Could you also demonstrate that you can run simple commands like "dir", "cd" etc. via telnet to prove that the environment is operational.

These actions should make the cause of the failure much clearer.

Thanks


In reply to Re: Need to Execute msiexec using Net::Telnet by philiprbrenan
in thread Need to Execute msiexec using Net::Telnet by tarunmudgal4u

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.