12. Processes and Interprocess Communication
Tcl provides several commands for dealing with processes. You can create new processes with the exec
command, or you can create new processes with open
and then use file I/O commands to communicate with them. Tcl also supports interprocess communication via TCP/IP sockets. You can access process identifiers with the pid
command. You can read and write environment variables using the env
variable, and you can terminate the current process with the exit
command.
12.1 Commands Presented in This Chapter
This chapter discusses the following commands related to process control and interprocess communication:
• exec ?-keepnewline? ?-ignorestderr? ?--?
arg
?
arg
...?
Executes the command pipeline specified ...
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.