Execute a system command: Difference between revisions

Content added Content deleted
No edit summary
Line 92: Line 92:


'''Note:''' The latter is the preferred method for calling external processes, although cumbersome, it gives you finer control over the process.
'''Note:''' The latter is the preferred method for calling external processes, although cumbersome, it gives you finer control over the process.

==[[Tcl]]==

puts [exec ls]

This page uses "ls" as the primary example. For what it's worth, Tcl has built-in primitives for retrieving lists of files so one would rarely ever directly exec an ls command.


==[[UNIX Shell]]==
==[[UNIX Shell]]==