Re: Redirecting ex.err to STDOUT

new topic     » goto parent     » topic index » view thread      » older message » newer message

duke normandin wrote:
> 
> Hi...
> 
> Does Euphoria have a way of redirecting errors to STDERR instead of writing
> to
> ex.err?
> 
> Apache has been puking a bunch of "500 pages" because of my newbee syntax
> errors. It would be nice if these errors would be redirected to STDOUT or
> STDERR - preferably to the screen so that they would be obvious. Any ideas?
> TIA....

You didn't say if you're using Linux or Win32 but you could add these lines to
the top of your code ...

include machine.e
if platform() > 2 then
    -- Linux, Unix
    crash_file("/dev/tty")
else
    -- DOS, Win32
    crash_file("con:")
end if
crash_message(" ** PROGRAM CRASHED **")



-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu