Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: I'm an idiot newbie, so

by Chady (Priest)
on Apr 20, 2001 at 22:53 UTC ( [id://74270]=note: print w/replies, xml ) Need Help??


in reply to I'm an idiot newbie, so

are you searching for exec ??
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Replies are listed 'Best First'.
Re: Re: I'm an idiot newbie, so
by bsummerer (Initiate) on Apr 20, 2001 at 23:00 UTC
    Didn't know if that was even a keyword. Many thanks. -Brett

      Beware that exec never returns (if you didn't already know that), because it replaces your process with the new one.

      If you want to make multiple "execs", you can use system.

      Check out perlfunc for a list of all available functions and keywords in Perl.

      bbfu
      Seasons don't fear The Reaper.
      Nor do the wind, the sun, and the rain.
      We can be like they are.

      Just to complete chady and bbfu answers.
      backticks quotes could be handy too...
      (When you need to grab the produced output)

      You might then use something like :
      $string_to_process=`ping $host`;
      (notes that variable are interpolated inside backticks)

      "Only Bad Coders Badly Code In Perl" (OBC2IP)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-12-09 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (55 votes). Check out past polls.