Re: system/system_exec problem

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

jbrown105 at speedymail.org wrote:
> Since from another post it was determined that system_exec() fails no matter
> what when called from an icon, but it works fine when called from an icon
> WITH an xterm, perhaps system_exec() is causing some terminal IO to occur.
> 
> In 2.3 the use of system() caused ncurses to attempt to initialize a terminal,
> which (in a daemon program I was writing) failed, causing much frustration
> and motivated me to create the basicio library.
> 
> Rob said he fixed that in 2.4, but perhaps he forgot to update system_exec()?

Thanks for pointing that out.
I'll make the same change to system_exec()
that I made to system(), so it won't try to
initialize ncurses.

Also, on Linux/FreeBSD, system_exec() calls the
C system() routine, so I/O redirection is possible,
but redirection in system_exec doesn't work on DOS/Windows.
I'll add a note to the docs.

Thanks,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu