I
I
Ig0rek20222022-02-15 15:50:24
Task Schedulers
Ig0rek2022, 2022-02-15 15:50:24

The command is not saved in crontab, what should I do?

I'll explain the situation.

I write the crontab -e command, the configuration file opens.
At the end of the file I add the line:
* * * * * /root/backup.sh
and save it.
Then I write the /crontab -l command in the console. Writes "no crontab for root".
What to do? The editor used is nano.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2022-02-15
@Drno

there must be an empty line at the end of the crontab file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question