In the below example, I will create a executable #cron-job-delete-file.sh bash script file to hold the scheduled tasks commands; change its file permission to be “executable by admin/user”; and add it to cpanel cron job to be ran every 1 minutes:
- create the following
#cron-job-delete-file.shin~/public_html

- create the folder
#cron-sample-directoryat~/public_html

- change the file permission and test the execution via terminal

- add the cron job (optionally, you can also add an email to notify you every time when cron job executes)
