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.
Run PHP script from Linux Shell
Moderator: General Moderators
- ferreira.jorge
- Forum Newbie
- Posts: 11
- Joined: Tue Nov 14, 2006 6:13 am
- Location: Portugal
Ok.
I tried to run it from shell like you told me.
If i run this command like a normal shell script it says to me the same thing it does in crontab, which is:
If i try to run it from shell like it runs it properly.
Does this help? I'm really getting desperate.
Thanx for your help
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.phpCode: Select all
.ould not open input file:Code: Select all
# php script.phpDoes this help? I'm really getting desperate.
Thanx for your help
- ferreira.jorge
- Forum Newbie
- Posts: 11
- Joined: Tue Nov 14, 2006 6:13 am
- Location: Portugal
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- ferreira.jorge
- Forum Newbie
- Posts: 11
- Joined: Tue Nov 14, 2006 6:13 am
- Location: Portugal