B
B
BonBon Slick2018-09-26 02:39:08
Task Schedulers
BonBon Slick, 2018-09-26 02:39:08

/usr/bin/crontab: cannot execute binary file: Exec format error?

/etc# crontab -e
-bash: /usr/bin/crontab: cannot execute binary file: Exec format error

There were a couple of commands already registered earlier, now I went to the server, it knocks out an error. where did the binary go and why? How to restore?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Radjah, 2018-09-26
@BonBonSlick

Either the binary is damaged, or the libraries on which it depends.
View dmesg when such an error occurs.
Look ldd /usr/bin/crontabfor missing libraries.
You can also stupidly reinstall the package.
For debian something like this:
sudo apt install --reinstall cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question