Answer the question
In order to leave comments, you need to log in
Why is crontab not working?
I am trying to periodically rewrite an HTML file using a simple script and a function in python, writing there every minute the current time the nginx server is running.
The problem is that if you run the script via bash, then everything is perfectly rewritten, but for some reason it does not want to rewrite the file via cron.
What could be the problem?
PS All this is happening on a remote virtual machine that I connected to via PuTTy.
Now more specifically.
In cron I have the following written:
This is the time.sh file:
In time.sh it is written:
!#/bin/bash
sudo python3 update
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question