Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

How to read output from a background task in anon-blocking way?...

$
0
0
> This is the sort of code to run and poll the task. Creating the command
> line was messy as it was different for windows vs Linux - you shouldn't
> have that problem.


Thanks! That's a good starting point indeed.

> There are neater ways to copy output file to a variable.


I usually do:

use File::Slurp;
my $output = read_file($logfile);

--

Michael

Viewing all articles
Browse latest Browse all 6235

Trending Articles