Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Checking a command is runningby BazB (Priest) |
on Oct 14, 2003 at 20:39 UTC ( [id://299254]=note: print w/replies, xml ) | Need Help?? |
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 If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
In Section
Seekers of Perl Wisdom
|
|