Keep It Simple, Stupid | |
PerlMonks |
Re: perl and omshell for dhcpd status -- IPCby Discipulus (Canon) |
on Feb 04, 2018 at 20:10 UTC ( [id://1208440]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|