Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: What error is "No Error"

by Krambambuli (Curate)
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))"


Replies are listed 'Best First'.
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 <>
      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 :)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://721111]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2018-06-19 14:45 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.