Reply to Re: Scheduling PHP on Win XP

Your name:

Reply:


Posted by Csaba Gabor on 12/16/05 13:02

Andrew DeFaria wrote:
> Csaba Gabor wrote:
>
> > Note that the VBScript MsgBox requires the /INTERACTIVE flag, but the
> > PHP popup does not.
>
> What gave you that notion?

Testing.

> /interactive for the at command is required if the scheduled
> task wants to interact (hence the name) with the desktop.

Yes, I have read this also in the AT help. Nevertheless, on my
system, things happened as I reported in my original post. Do
the tests turn out differently on yours?

> BTW: at is old hat. See Help & Support and search for schtasks.

Thank you for this. I have tested with schtasks using the following
line, and the php script executed fine:
C:\somedir>schtasks /create /SC once /TN test /TR
"c:\winapps\php.net\php
..exe c:\phpapps\himom.php" /ST 10:58:05 /RU system

An aside about schtasks: it seems to require that you specify HH:MM:SS,
but it sets the SS part to 00. Thus, if the minute has just turned and
you want to schedule something 15 seconds from now, it will schedule as
never since the SS=00 will ensure that time has passed. So I have to
wonder why they force inclusion of seconds in the first place.

Csaba

PS. I would like to share a suggestion from Mark (thanks) that is in
the vein of my original himom.vbs example:
AT 11:36 explorer.exe http://localhost/himom.php

This 'worked' but there seems to be a huge overhead. Whereas the
performance using the himom.vbs funnel method was spiffy, with this
method, it took several seconds for the popup to appear, and even after
I had dismissed it, system usage stayed at around 50% for about a
minute.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация