Crontab commands does not run as expected.
Also i have made a Code Pipeline where Code Deploy is connected. As soon as i commit the code, source takes the latest commit and passes to Code Deploy, Also the files in EC2 changes as per the latest commit. But cron job does not do its job as mentioned.
Also if i manually use the command in command prompt, then logging in as ec2-user which is default for aws linux, the command runs as expected. But the same does not runs as expected in cron job.
Here is my root crontab file contents:
Crontab commands does not run as expected. Also i have made a Code Pipeline where Code Deploy is connected. As soon as i commit the code, source takes the latest commit and passes to Code Deploy, Also the files in EC2 changes as per the latest commit. But cron job does not do its job as mentioned. Also if i manually use the command in command prompt, then logging in as ec2-user which is default for aws linux, the command runs as expected. But the same does not runs as expected in cron job.
Please help me with this issue.