Friday, 4 March 2011

Troubleshooting php.exe when run from Task Scheduler

I looked high and low for ideas on how to keep open the output that flashes up when you run a php page using task manager (unless you write a bit of vbs to hide it entirely).

eg, when Task Scheduler runs:

C:\wamp\bin\php\php5.3.4\php.exe d:\test.php

how can you check to see whether there are errors in test.php? Obviously you could open as any other php page but what if the errors are only applicable to the page being called from Task Scheduler?

The nearest I have got is to open cmd.exe, and then paste in the command-line string.

1 comment:

lpatrick said...

How about:
... > out.log 2>&1