Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: What error is "No Error"

by Krambambuli (Deacon)
on Nov 03, 2008 at 15:04 UTC ( #721111=note: print w/ replies, xml ) Need Help??


in reply to What error is "No Error"

The error message you got seems actually OK:

Can't spawn "bkill.exe 4711": No error at -e line 1.

Note that it is "bkill.exe 4711" - do you have a "bkill.exe 4711".exe in reach ? :) You probably need qw instead of qq,

perl -lwe "system(qw(bkill 4711))"

Krambambuli
---


Comment on Re: What error is "No Error"
Download Code
Re^2: What error is "No Error"
by rovf (Priest) on Nov 03, 2008 at 15:16 UTC

    Nice idea, but it does not work out. Aside from the fact that it would imply a serious bug in Perl's system("...") (which is a function so frequently used that it would have been noticed earlier - note that the argument to system *is* allowed to be a string representing a whole command line), it would not explain why the error occurs only for processes which have been finished. Aside of this, we can see from the previous output line that bkill *was* executed correctly, before the error message was displayed. So I guess almut's guess comes closer to the real explanation...

    -- 
    Ronald Fischer <ynnor@mm.st>
      You're right, my first thought is clearly wrong. I should also have paid attention to the fact that 'bkill 4711' becomes "bkill.exe 4711" in the error message, which makes it clear that the system understood which program to call.

      Sorry - it was meant to help, even if it didn't.

      On the bright sight, it made me check 'perldoc -f system' once more :)

      Krambambuli
      ---

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://721111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-09-01 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls