factor/contrib/process/os-unix.factor

12 lines
319 B
Factor
Raw Normal View History

2006-10-20 17:55:08 -04:00
IN: process
USING: compiler io io-internals kernel parser generic ;
LIBRARY: libc
FUNCTION: int system ( char* command ) ;
FUNCTION: void* popen ( char* command, char* type ) ;
FUNCTION: int pclose ( void* file ) ;
: run-process ( string -- ) system io-error ;
: run-detached ( string -- ) " &" append run-process ;