in reply to Suppress unwanted text from Filesys::SmbClientParser
That is output from the underlying tool, (/usr/bin/)?smbclient. It's invoked in the private method _List with the -L arg (which gives that output) in methods: GetShr, GetHosts, and GetGroups. It seems to be sent to STDERR. That's why it's in your output and might even seem random since buffering for STDOUT might not match.
Thing could maybe be rewritten in a modern idiom with Capture::Tiny or something to catch and separate the layers but it is what it is today and what it is is a 15 year old module that does all its calls with `backticks` and it might have issues in general from age or underlying tool drift. You could always redirect STDERR and/or STDOUT in your code, or in the shell where you call your code, to separate the output at least.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Suppress unwanted text from Filesys::SmbClientParser
by paullem (Sexton) on Nov 22, 2017 at 20:29 UTC | |
|
Re^2: Suppress unwanted text from Filesys::SmbClientParser
by glasswalk3r (Friar) on Nov 23, 2017 at 13:34 UTC |