Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: bill

Message Too Old, No Replies

Problem with scheduling iexplore

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

Full Member

10+ Year Member

joined:Aug 29, 2003
posts:244
votes: 0


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

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

Full Member

10+ Year Member

joined:Aug 29, 2003
posts:244
votes: 0


Forgot to mention this, I'm scheduling it on a Windows 2000 machine ...
2:00 pm on Feb 16, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Aug 29, 2003
posts:244
votes: 0


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

Full Member

10+ Year Member

joined:Feb 4, 2004
posts:215
votes: 0


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