Hi, I think I'm trying to do something that's not possible... I am using Control::CLI to interact with remote servers. I have need in my script to watch a log file until certain lines are seen and react to them accordingly. I am trying to open the command with a pipe so I can read the output into my script, but it doesn't work. I've tried the only 2 things I can think of/find online, and both fail.
open(LOG, $NE_obj->cmd("tail -f /path/to/log |"));
open(LOG, '$NE_obj->cmd("tail -f /path/to/log")|');
Any thoughts on how this could work? Is it even possible? Thanks in advance!