Re: system_exec() on Linux
- Posted by Bernie Ryan <xotron at bluefr?g?com> Oct 10, 2007
- 623 views
Robert Craig wrote: > > Julio C. Galaret Viera wrote: > > According docs: "If it is not possible to run the program, system_exec() > > will > > return -1." > > > > While that happens on Windows, on Linux does not return -1 when trying to > > run > > a program that does not exist. > > > > Euphoria v. 2.5/3.l.1 > > I tried the system_exec() example on Linux. > It didn't return a -1 error code, but did > return a non-zero code (32512) which indicates an error. > Is that what you got? > Maybe I just need to change the documentation. > > Regards, > Rob Craig > Rapid Deployment Software > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> man system says: The value returned is -1 on error if the fork fails; otherwise return the status of the command. The status returned depends on the type of job your executing. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan