OK - here are a couple of problems...

> crontab -l
>
> 0 0 * * 1 /backup.day1.sh # Day 1 backup
> (the same was repeated for each of the other 4 scripts)

Note that this is trying to run /backup.day1.sh . You probably don't mean
that; the dot after "backup" would appear to be a typo (should it be a
slash?)

> ls -l /backup
> -rwxrwxr-x 1 root root 357 2010-10-05 20:43 day1

And here, your script is called "day1", not "day1.sh".

> I think
> I may need to change some of the permission so only root can run and
> write?

Only root can write those. Others may read/execute - it's up to you
whether you see a problem with that (depends on the content of the
script).

> I looked in mail and yes there were mails regarding cron there. Basicly it
> is
> saying /backups/day1 file not found

Yep. And now you know why :-)

> So the problem is how do I tell it to
> chnage to the backup folder and then run the script?

No. Relying on CWD is usually a problem - a change to your setup later can
cause subtle problems. Better either to be *explicit* about what you want
to run (which your script attempts to be, but fails), or to ensure your
executables will be properly in PATH.

> I should point out (if it makes any difference) that I am access the
> server via vnc

None at all.

Vic.


--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to