Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: What error is "No Error"

by Krambambuli (Curate)
on Nov 03, 2008 at 15:04 UTC ( [id://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
---

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 <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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://721111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found