I am trying to execute a Perl script like so:
/usr/bin/ec2-consistent-snapshot 'vol-dr3131c2'
When the Perl script fails it exits using 'die' and prints out an error message. I can see that error message when executing manually, but I am failing to capture it through PHP.
I tried the following with no success:
exec($command,$output);
echo system($command,$output);
passthru($command);
Any ideas?