Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: System, exec different behaviour with spaces

by sacambs (Initiate)
on Jan 12, 2012 at 10:43 UTC ( #947515=note: print w/ replies, xml ) Need Help??


in reply to Re: System, exec different behaviour with spaces
in thread System, exec different behaviour with spaces

Thanks for the pointers - I'm somewhat clearer about where the problem comes from, even if the fix is somewhat convoluted (I need to support multiple platforms). What I still don't get is why the behaviour is OK when using system, but not exec. I'd have thought that in terms of their argument passing the two would have been equivalent.


Comment on Re^2: System, exec different behaviour with spaces
Re^3: System, exec different behaviour with spaces
by Anonymous Monk on Jan 12, 2012 at 11:20 UTC

    What I still don't get is why the behaviour is OK when using system, but not exec.

    Perhaps you didn't notice, but that is what I asked :)

    Though, at this point, i don't really care what the answer is :)

      I did go through that thread, but kind of got lost on the way. If I'm reading it right the answer was 'it's probably something odd ActiveState have done to their version of the codebase' (unless they've compiled with odd settings for wait timers - which I wouldn't rule out given the daft settings they use for randbits).

      I guess my immediate fix is to use system and put up with having the perl process hang around longer than it needs to.

      Thanks for the help.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-12-18 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (48 votes), past polls