Welcome to WebmasterWorld Guest from 54.234.63.187

Forum Moderators: bill

Message Too Old, No Replies

Problem with scheduling iexplore

     

turbohost

9:00 am on Feb 16, 2005 (gmt 0)

10+ Year Member



Hi Guys,

Got a problem with scheduling the execution of a php file via iexplorer.

I'm running this command via cmd to schedule the batch file (I've got to schedule about 10 php files)
at \\SYSTEMNAME 09:53 /interactive /every:M,T,W,Th,F,Sa,Su "c:\test1.bat"

The batch files test1.bat has the following commands :

"c:\program files\internet explorer\iexplore.exe" "http://127.0.0.1/dir/testphp1.php"
"c:\program files\internet explorer\iexplore.exe" "http://127.0.0.1/dir/testphp2.php"

The last result in the scheduler tells me that the status was 0x0 and in the event viewer there are no errors. The php files are not run though. If I run the commands in the batch via cmd line the php files are run without errors.

Someone?
Turbo

turbohost

9:23 am on Feb 16, 2005 (gmt 0)

10+ Year Member



Forgot to mention this, I'm scheduling it on a Windows 2000 machine ...

turbohost

2:00 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



Someone?

jezra

1:24 am on Feb 25, 2005 (gmt 0)

10+ Year Member



Hello,
Is there anything limiting you from using the task scheduler in the control panel? if not, I would suggest using the task scheduler to run your batch file. Personally, and this is just me, I would skip the bat file and just use a php file to call the necessary php scripts or at least take IE out of the picture. Depending upon how PHP is installed on your puter, you should be able to run any PHP script with c:\PATH\TO\PHP -f c:\PATH\TO\SCRIPT
 

Featured Threads

Hot Threads This Week

Hot Threads This Month