See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cronjob for a script
#1
Hi everyone! Hope you're all having a nice life! Smile

I wrote a very simple script to copy files from one dir into another one, I want to create a cronjob so it runs once a week - on Sundays - but I'm not sure whether if it's correct or not. Can you take a look and tell me so?
this is the cronjob:

0 1  * 1-12 SUN /home/myusername/dir/cp.sh 
or

0 1  * 1-12 SUN /bin/bash /home/myusername/dir/cp.sh

I've read quite a few posts all over the web but I'm still confused. Thanks in advance for your answers.

Without each others help there ain't no hope for us Smile
Need a translation service? https://www.deepl.com/es/translator
Reply


Messages In This Thread
Cronjob for a script - by Moltke - 09-18-2018, 08:39 PM
Re: Cronjob for a script - by bitsnpcs - 09-18-2018, 10:20 PM
Re: Cronjob for a script - by Moltke - 09-18-2018, 11:43 PM
Re: Cronjob for a script - by bitsnpcs - 09-18-2018, 11:48 PM
Re: Cronjob for a script - by Moltke - 09-18-2018, 11:57 PM
Re: Cronjob for a script - by bitsnpcs - 09-19-2018, 12:46 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)