I have created a cron job that runs a script which moves files from one location to another.
Here is my result after running crontab -l
0 6 * * 0 root /root/scripts/move.script.sh
move.script.sh has following lines of codes:
#!/bin/sh
/bin/rm -rf /home/user1/folder2/Monday/*
/bin/mv /home/user1/folder1/* /home/user1/folder2/Monday/
With this code, I first remove the stuff from last week in Monday folder and then copy stuff from user1's folder1.
How ever this job doesn't run at all.
I have checked with other cronjobs but they work fine and the problem is with this cronjob only.
Can anyone tell me what I have done wrong in here?