ovedpo15 has asked for the wisdom of the Perl Monks concerning the following question:
The output:print("Before setting command: $path\n"); $cmd = "ldd $path"; print("Before running command\n"); ($stdout, $stderr, $exit_status) = capture { system($cmd); }; print("After running command\n");
And it gets stuck. It continues running only after I click Ctrl+C. Then it will resume and continue running my script. The output looks like:Before setting command: /proc/self/fd/1 Before running command
Note the ^C. Any other path works well.Before setting command: /proc/self/fd/1 Before running command ^CAfter running command
Then I get:print("Before setting command: $path\n"); $cmd = "$LDD $path"; print("Before running command\n"); $stdout = `$cmd`; #($stdout, $stderr, $exit_status) = capture { system($cmd); }; print("After running command\n");
Which makes me believe that Capture::Tiny getting stuck on this path.Before setting command: /proc/self/fd/1 Before running command ldd: /proc/self/fd/1: not regular file After running command
|
|---|