• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

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
0
fixitben
Asked:
fixitben
  • 3
  • 3
1 Solution
 
ljubiccicaCommented:
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
0
 
fixitbenAuthor Commented:
That would work too.  Can you give me the way you did that.
0
 
ljubiccicaCommented:
OK

With wizard I chose IE and then changed propertis of it ->

C:\PROGRA~1\INTERN~1\iexplore.exe  -ewww.experts-exchange.com/somefile.php

I hope it wll work for you too...

Greets
Ljubiccica
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
fixitbenAuthor Commented:
what does the -e do in the middle?

Thanks
fixitben
0
 
ljubiccicaCommented:
It tells which url the IE should open.

Np
Ljubiccica
0
 
orbic1Commented:
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
0
 
fixitbenAuthor Commented:
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
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now