I have misunderstanding :( !. maybe I can't make my question be clear to you. the glomosim is a network simualtor , whatever , when I want to execute the file (data.in). I go to cmd.exe and write the command (glomosim data.in) and press enter. So glomosim here is a command , as you have said, I want to pass this command (glomosim data.in) and run it on cmd.exe from perl. when I write :

@args = ("glomosim", "c:\\glomosim\\bin\\data.in"); system(@args) == 0 or die "system @args failed: $?";
I got the error : can't spawn "cmd.exe" : No such file or directory at run_FtpGen.pl line 71 system glomosim c:\glomosim\bin\data.in failed ... I am beginner with perl and using windows7, so sorry for my many questions. :) Thank you


In reply to Re^7: system sub routine with windows7 by Njoud
in thread system sub routine with windows7 by Njoud

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.