0

I had to reinstall a whole stack on an EC2 instance because a colleague mess up the previous one (not able to SSH anymore). Long Story Short: New EC2 is running.

We have to run 2 jobs by a CRON job. Each script run perfectly of run manually.

00 3 * * 1,3,5,7 cd /home/ubuntu/my/path/; ./ingest_daily.sh &> "$(date +%Y-%m-%d-%H-%M-%S_ingestion.log)"

But the script is never launched, no log file.

So I have added a dummy cron doing:

*/1 * * * * cd /home/ubuntu/my/path/ ; echo "Hello World!" &> "$(date +%Y-%m-%d-%H-%M-%S_test.log)"

Nothing either.

pgrep cron shows me a PID so the daemon is running.

I have no idea where to look at it. I have already read some answers here but nothing seems to work.

Ragnar
  • 101

0 Answers0