Development > Scripting and Bash

Cronjob for a script

<< < (2/2)

Moltke:
Hi everyone! Hope you're all having a nice life! :)

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.

Navigation

[0] Message Index

[*] Previous page

Go to full version