On Wednesday 26 April 2006 9:08 pm, Christopher X. Candreva wrote:
> On Wed, 26 Apr 2006, Chris wrote:
> > "A 500 status code is an internal server error. Nothing to do with the
> > script."
>
> "99% of all problems under Unix are permissions"
>
> Aside from it being under cron, what else is different. UserID,
> evnironment, shell, PWD, etc ?
>

The file Phish.pl is located in /usr/local/bin with all my other scripts.

Here is my crontab:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
[EMAIL PROTECTED]
HOME=/
# run-parts
1 * * * *       root    nice -n 19 run-parts /etc/cron.hourly
2 * * * *       clamav  /usr/local/bin/freshclamcron
0 * * * *       root    /usr/local/etc/logcheck.sh
33 21 * * *     chris   /usr/local/bin/Phish.pl

# 
2 4 * * * root nice -n 19 run-parts /etc/cron.daily
# 
22 4 * * 7      root    nice -n 19 run-parts /etc/cron.weekly   
# 
42 4 1 * *      root    nice -n 19 run-parts /etc/cron.monthly

Permissions are set as below:

[EMAIL PROTECTED] bin]# ls -lr Phish.pl
-rwxrwxr-x  1 root root 331 Apr 26 18:56 Phish.pl*

I've tried setting the user and group to 'chris' and 'root' both gave the 
'500' status.  When ran from the cli in my home dir as user 'chris' it 
works fine.  Don't know what else to try unless I'm not seeing something 
obvious.

-- 
Chris
Registered Linux User 283774 http://counter.li.org
21:35:06 up 6 days, 1:19, 1 user, load average: 0.41, 0.30, 0.49
Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk

Attachment: pgpUj0Tlbzx4e.pgp
Description: PGP signature

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to