Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Checking a command is running

by BazB (Priest)
on Oct 14, 2003 at 20:39 UTC ( [id://299254]=note: print w/replies, xml ) Need Help??


in reply to Re: Checking a command is running
in thread Checking a command is running

As other posters have pointed out, Perl isn't shell, although it can be used that way.

You make calls, via backticks (``) to external commands - even to call text processing tools such as awk, when you could do most of it internally with perl.

There are modules on CPAN that allow you to look at the process list on UNIX systems (see Proc::ProcessTable)

dragonchild has give you a good example - you should work through the way his example works and learn from it.

Cheers

BazB


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found