Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: perl and omshell for dhcpd status -- IPC

by Discipulus (Canon)
on Feb 04, 2018 at 20:10 UTC ( [id://1208440]=note: print w/replies, xml ) Need Help??


in reply to perl and omshell for dhcpd status

Hello mdd and welcome to the monastery and to the wonderful world of Perl!

If you want to read and write from/to external program you need some IPC (see perlipc and notably this part) as offered by IPC::Open2 IPC::Open3 ( both CORE modules and Open3 to also have STDERR but pay attention to different order in respect to Open2 flavour) or some CPAN module as IPC::Run IPC::Run3

There are others but the above are more often used, i think. See also portability / system / elegance and Re: open2() in Windows

L*

update ah! bravo NetWallah below, i was trying to remember the name of that module with no luck. See also Capture::Tiny

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found