I want to repeat a task every day at 6PM.
I know this command executes a task at the next 6PM:
echo "ls -l" | at 18:00
I tried to RTFM but didn't find anything relevant to repeating said task. What's the right way to do this?
man cron is your friend. For this, you might want to try something like:
0 18 * * * echo "ls -l" > /var/log/ls_log.log
Add it to the crontab with
crontab -e. Check the output of the command by looking at
/var/log/ls_log.log. Google "cron tutorial"- there are lots of them