Page 2 of 2

Posted: Tue Nov 21, 2006 9:50 am
by pickle
Take the command out of crontab & run in manually - see what happens.

While we're not sure what the problem is, I'm 100% confident that the problem is with your code/call to php & not crontab/SuSE.

Posted: Wed Nov 22, 2006 3:33 am
by ferreira.jorge
Ok.
I tried to run it from shell like you told me.
If i run this command like a normal shell script

Code: Select all

# ./script.php
it says to me the same thing it does in crontab, which is:

Code: Select all

.ould not open input file:
If i try to run it from shell like

Code: Select all

# php script.php
it runs it properly.
Does this help? I'm really getting desperate.

Thanx for your help

Posted: Wed Nov 22, 2006 9:57 am
by pickle
Sorry, I should have been more specific. Run it as 'root' since that's what its being run as in cron.

Posted: Wed Nov 22, 2006 11:52 am
by ferreira.jorge
Well, I did.
All the messages that I posted up were made while running the scripts as root.
Does it make sense to post all my code here, including all the scripts and the crontab?
Maybe that way we could find something that's not properly coded.

Posted: Wed Nov 22, 2006 11:59 am
by pickle
I'm running out of ideas. At this point I'd start with a new file & try to build it up. Make it just a basic echoing PHP file & see if you can get it to run properly. Then add more & more code until you've got what you need.

Posted: Wed Nov 22, 2006 12:07 pm
by ferreira.jorge
Yeah. That's what I was thinking too.
Thanx anyway for your time.

Posted: Thu Feb 01, 2007 2:49 pm
by Nwalee
I had a same problem. I figured that my php script file wasn't unix format.
So make sure it's Unix not PC format. This should fix your problem as well.