I need to create a cron job that executes a file every morning at 4am. I have need used cron jobs before so pretty much lost right. I've read alot of things but still not sure. Can someone give me a step by step help from the very begining.
I am not sure how to access the crontab or write to it.
I need to run this file every morning at 4am.
I use 'crontab -e' then try to add '00 04 * * * /crons/mysql/update.sh' to the line it says 'Crontab: no crontab - using an empty one'
I then tried adding '00 04 * * * /crons/mysql/update.sh' then says 'isn't a vi command'
Learn several ways to interact with files and get file information from the bash shell.
ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands.
Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.: