in reply to system subroutine is ignored

what I have noted is the system doesn't executed (ignored) ! and I get nothing ! (No errors) can anyone suggest a solution for this ?! p

What I've noticed is that this is the same question you asked here; to which you got responses to which you responded, but now you seem to have forgotten.

For example:

And in that thread you were using Windows7, but in this thread you say: " I am using XP<".

All of which leaves it looking like you are very confused.

If you want help, you need to do some work. For a start, can you run the command successfully outside of Perl(ie. from a command line)?

If so, open a cmd window, and type the following sequence of commands and then copy&paste the output here:

c:\>attrib /s glomosim.exe c:\>attrib /s data.in

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: system subroutine is ignored
by Njoud (Initiate) on Jun 29, 2013 at 17:20 UTC

    Yes ,I am confused from the error , I tried everything I found to pass a cmd command using system and I got either errors or nothing . I stoped at the lastest error "can't spawn "cmd.exe" : No such file or directory at run_FtpGen.pl line 71...." and I didn't get any suggestion to solve it. So I have installed windows XP on my second laptop and install perl on it ! because I was wonder that the reason is with windows 7. I am beginner with perl.no time to me to learn it in deep Just plz tell me How I can pass a commaned to cmd using system subrotine?! I don't know why it is ignored and I got nothing now ! Thank you

      "no time to me to learn it in deep"

      No time to help those who won't help themselves!


      If you didn't program your executable by toggling in binary, it wasn't really programming!

        I Know that to acheive my project that it is not necessary to learn perl in deep ! since I used a perl as a tool with another program. and only the system subroutine doesn't work ! I help myself. ! Thank you anyway!
Re^2: system subroutine is ignored
by Njoud (Initiate) on Jun 29, 2013 at 17:32 UTC

    I do what you have suggest

    c:\>attrib /s glomosim.exe c:\>attrib /s data.in
    on cmd , and for both commands I got : 'attrib' is not recognized as and internal or external command,operable program or batch file.

      Highly implausible... unless
      • Your copies of Windows are broken
      • You didn't do exactly what you are showing us

      Try help attrib OR attrib /? to see if you get the message you cite.

      And if, perchance, glosomin.exe and data.in are on some drive other than C:, the message should have been to the effect "(filename) not found" or some variation thereof. But attrib had been an M$ command from some early, pre-Windows version of DOS.


      If you didn't program your executable by toggling in binary, it wasn't really programming!