I am trying to run aws s3 cp command from within php code using shell exec. Following is the php code.
echo shell_exec(\"sudo aws s3 cp s3:///s
This worked for me:
&1'); echo "$output"; ?>
$output