Link to home
Start Free TrialLog in
Avatar of fixitben
fixitben

asked on

Schedule task with windows php

Hi Everyone,

I am banging my head trying to figure this one out.  I have a windows 2000 server running IIS and php4.  I have a cmd script pointing to the path of php and then the script.  When you click the script it runs fine and send the email.  But If I tell scheduled task to run it it does nothing and the scheduler reads 0x0 which is success.  But nothing gets ran.

Also what is really wierd is that I can kill all php.exe processes then click run the task and it works. Also as soon as someone accesses any php page from the interenet on this server it starts 5 php.exe processes that don't ever quit.  

Can anybody take this info and tell me what is going on here.  I think it is a process conflict but I have tried renaming the php.exe and running that in my script instead of the actual php.exe and still no go.


Thanks
Fixitben
Avatar of ljubiccica
ljubiccica
Flag of Slovenia image

Hey there...

If it is the script you want to run like a schedule task, here is what i did last week:

I have a task -> IE that openes an url...

If that is what you need, I can see how i put the url in the task and write it...

Greets
Ljubiccica
Avatar of fixitben
fixitben

ASKER

That would work too.  Can you give me the way you did that.
ASKER CERTIFIED SOLUTION
Avatar of ljubiccica
ljubiccica
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what does the -e do in the middle?

Thanks
fixitben
It tells which url the IE should open.

Np
Ljubiccica
did that work? we use wget (yes - it is available for windows and it works very well!)


Here is a step by step that I found:
----------------------------------------------------------------------------------------------------
http://docs.openads.org/openads-2.3-guide/maintenance.html
Thanks that worked great.

The only thing I had to do is set the kill process to like 1 min because it would just start the process and never kill it.  But other than that it works great.


Thanks
Fixitben