You are here: Re: [PHP] Windows CLI and task scheduler « PHP « IT news, forums, messages
Re: [PHP] Windows CLI and task scheduler

Posted by Richard Lynch on 01/19/05 19:39

Dominic Schanen wrote:
> I've written several command line scripts to run as scheduled tasks on a
> Windows 2000 Server machine. They run fine, no problems. However, the
> application log is filling up with errors stating that windows was
> unable to unload my registry profile. I know the PHP scripts are at

Wha...???

I don't think PHP does anything to "load a registry profile"

This probably is down at the level of the OS and the Task Scheduler layer,
rather than in PHP itself.

You may want to try opening up an MS-DOS window and running your cron jobs
by hand in that to see what output you get, if any.

> fault because the errors are being recorded at the same intervals as my
> scheduled tasks.
>
> I installed UPHClean to cleanup the unloaded profiles but that simply
> doubles the number of log entries created.
>
> I was wondering if anyone else has run into this problem? Is this a task
> scheduler problem or a PHP problem? If it is a task scheduler problem,
> is there something I can do by exiting or closing differently in PHP?

I really doubt that your PHP code will change -- Probably a setting in
Windows or Task Scheduler, or the way you launch PHP...

Hmmmm. Did you have it set up to open an MS-DOS window and then KEEP it
open? Maybe then the Task Scheduler can't close those windows, and that's
what is keeping the Registry Profile open, whatever that is.

> I have PHP 5.0.3 and am using php-win.exe

You may have better luck on the php-windows list...

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this 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

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