Web Hosting Talk







View Full Version : Crontab Help


Jedito
01-06-2002, 08:14 PM
When I try to run a simple crontab
/home/xxxxxxx/public_html/backup/count.txt | MAILTO:=Anywhere@anydomain.com and iI got the following Error

/bin/sh: /home/xxxxxx/public_html/backup/count.txt: Permission denied

I set the permission of count.txt to 777 but still no luck

Anyone can help me with this? what is wrong with it?

priyadi
01-06-2002, 08:22 PM
It is probably because /home/xxxxxxx/public_html/backup/count.txt is not a script or program. Looks like you want to mail the contents of count.txt, in that case, try this :


cat /home/xxxxxxx/public_html/backup/count.txt | mail your@mail.account

Jedito
01-07-2002, 06:33 PM
Don't work either :bawling:
I also tried
mailto anywhere@anydomain.com -s "This is the subject" < ~/backup/count.txt
but got

/bin/sh: /bin/mail: Permission denied

RutRow
01-07-2002, 08:52 PM
Looks like you don't have execute access to /bin/mail

priyadi
01-08-2002, 06:50 PM
Originally posted by Jedito


/bin/sh: /bin/mail: Permission denied



Try using /usr/sbin/sendmail instead of /bin/mail.