I can run the command
aws --version in a script and in the cli. But if I put this command into a crontab it does not work.
50 12 * * * aws --version > ~/yolo.swag
/bin/sh: 1: aws: not found
The aws command is in a bash script. And I get the same error message when I run the script in cron. How can I get the script to run the command fine ?