[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Cron problem:



> Here's my cron entry:
> */5 * * * *    root    /home/sites/site4/users  chmod -R 777
> 
> I get an email that states:
> /bin/sh: /home/sites/site4/users: is a directory
> 
> Can I not perform this command on a directory?  If not, how come?

Because your calling a dir and not a program

try

*/5 * * * *    root    /bin/chmod -R 777 /home/sites/site4/users  

Never did this... never would I guess.  But float your own boat....
If it dosent work make a little shell script like 
#!/bin/sh
/bin/chmod -R 777 /home/sites/site4/users
and run that....

Zeffie
http://www.zeffie.com/