Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Syntactic Confectionery Delight
 
PerlMonks  

Re: help needede in backticks(``) and system function

by ikegami (Patriarch)
on Feb 10, 2006 at 01:34 UTC ( [id://529290]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to help needede in backticks(``) and system function

The difference is whether the output (STDOUT) is captured or now. Backticks return what was printed to STDOUT, while system does not.

From the docs, it sounds like backticks always pass the command to a subshell, while it's possible to avoid running a subshell with system.

Replies are listed 'Best First'.
Re^2: help needede in backticks(``) and system function
by uva (Sexton) on Feb 10, 2006 at 01:38 UTC
    thanks ikegami.... will both the execution will interrupt the paren.i mean, will parent program wait until the child completes execution.

      Yes, the parent will wait in both cases. Unless you do execute something like command & (unix) or start command (Windows).

      fork+exec doesn't wait.
      IPC::Open3 doesn't wait.
      IPC::Run can do both.
      The special syntax system 1, ... in Windows doesn't wait.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://529290]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.