On Tuesday, 17 November 2020 at 19:07:42 UTC, Vino wrote:
auto pid = execute(["/usr/bin/aws ec2 describe-images --filters 'Name=state,Values=available' --query 'Images[*].[ImageId]'"]);
[...]
auto pid = execute(["/usr/bin/aws ec2 describe-images --filters 'Name=state,Values=available' --query 'Images[*].[ImageId]'"]);
You need to break up your command line so that each argument is in a separate array element. In the commands above you have multiple arguments grouped together into each array element.
Alternately, you can pass everything in a single string to `executeShell`.