Cron jobs for UNIX commands

Can I use a cron job to perform basic UNIX commands on regular schedules? I am trying to automate some functions on my server and can't quite seem to get it right.

Manually I can Telnet into the server and do the following:
cd /usr/local/www/vhosts/domain.com/htdocs
cp index.html newfile.html

I tried using a cron job to do this by setting up:
0 10 * * * /usr/local/www/vhosts/domain.com/htdocs cp index.html newfile.html

I get email notification (as I do with all cron jobs), but in this case it reports "Permission Denied". Other cron jobs do function as intended.

What am I missing in setting up this one or is it something I can't do? I'm just learning about cron jobs, any assistance is appreciated.

Gary

 

 

 

 

Top