On trying to add a cron job: python manage.py crontab add in django getting an error not found

Question:
How to fix stockdashboard.crons.hi sh: 1: /usr/bin/crontab: not found
Repl link:
https://replit.com/@shrisanka/NeatElderlyLinks

crons.py
def hi():
  f = open("demofile2.txt", "aw")
  f.write("Now the file has more content!")
  f.close()
  # print("Hello World")

code snippet
Error:

python manage.py crontab add
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/sh: line 1: /usr/bin/crontab: No such file or directory
  adding cronjob: (67360a0e48e8da0b1eb90ae123fff138) -> */1 * * * *
  adding cronjob: (54fa0d2ca9ccff12a5282a03ce4e0e3c) -> stockdashboard.crons.hi
sh: 1: /usr/bin/crontab: not found

Shell:
crontab -e
/var/cron: No such file or directory
/var/cron: mkdir: Read-only file system

The link to your repl is invalid. Is your repl private?

3 Likes