Search code examples
linuxcroncron-task

$ * * * * * echo "hi" => blado.kdb: command not found


I'm trying to set a cron job, namely echoing "hi" every minute.

When I do * * * * * echo "hi" I get blado.kdb: command not found. Any ideas how I could fix this?


Solution

    1. Run crontab -e in your shell. This opens a text editor
    2. Only then type * * * * * echo "hi". Save the file the text editor just opened for you

    Your Cron task is now set

    PS: echo "hi" will print "hi" in a void, if you want to see some results, set a task such as * * * * * touch /tmp/foo, and you'll see the modification date being updated every minute (ls -l /tmp/foo)