Skip Menu |

This queue is for tickets about the FFmpeg-Command CPAN distribution.

Report information
The Basics
Id: 115474
Status: open
Priority: 0/
Queue: FFmpeg-Command

People
Owner: Nobody in particular
Requestors: andreas.christ [...] sp-lion.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Windows-Support
Date: Mon, 20 Jun 2016 11:43:19 +0200
To: <bug-FFmpeg-Command [...] rt.cpan.org>
From: Andreas Christ <andreas.christ [...] sp-lion.com>
Hi, i use your class under windows. Itworks fine with a small change. Please can you patch this in a new version? thank you. for my $cmd ( shift || 'ffmpeg', 'avconv' ) { my $reDirTarget = ( $^O =~ /MSWin/ ) ? "NUL" : "/dev/null 2>&1"; system( "$cmd -version > $reDirTarget" ); my $ret = $? >> 8; if ( $ret == 0 || $ret == 1 ) { $command = $cmd; last; } } Bye Andreas
On 2016-06-20 02:43:39, andreas.christ@sp-lion.com wrote: Show quoted text
> my $reDirTarget = ( $^O =~ /MSWin/ ) ? "NUL" : "/dev/null 2>&1";
File::Spec->devnull() can be used to retrieve the null device that will work across all architectures. Further, 2>&1 is bash shell specific, so you cannot use this for all unix architectures anyway.