45. Operating System Utilities

Tcl provides a variety of functions to deal with underlying operating system services. This layer is platform-independent, except where it makes sense to give the user access to lower-level options that may not be present on all platforms.

45.1 Functions Presented in This Chapter

This chapter discusses the following functions for accessing operating system services:

Tcl_Channel Tcl_OpenCommandChannel(Tcl_Interp *interp,             int argc, CONST char *argv, int flags)

Opens a command channel using argv as the command and its arguments.

Tcl_DetachPids(int numPids, int *pidPtr)

Gives Tcl responsibility for numPids child processes that are passed in via the pidPtr array.

Tcl_ReapDetachedProcs()

Invokes the ...

Get Tcl and the Tk Toolkit, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.