[tcljava-dev] missing exec functionality
Brought to you by:
mdejong
From: Shawn B. <sh...@qc...> - 2002-01-08 16:24:08
|
The current exec command does not support the file redirections such as <, >, <<, >>, etc. I added support for '&' already. I'll work on adding some of these next. Here's the full set of stuff that should be supported for exec: Arguments: * -keepnewline Do not discard trailing newline from the result (must be first argument) * | Pipes stdout from one process to another * |& Pipes both stdout & stderr output * < fileName Takes input from named file * <@ fileId Takes input from the I/O channel identified by fileId * << value Takes input from the given value * > fileName Overwrites fileName with stdout * 2> fileName Overwrites fileName with stderr output * >& fileName Overwrites fileName with both stdout & stderr output * >> fileName Appends stdout to the named file * 2>> fileName Appends stderr to the named file * >>& fileName Appends both stdout & stderr to the named file * >@ fileId Directs stdout to the I/O channel identified by fileId * 2>& fileId Directs stderr to the I/O channel identified by fileId * >&@ fileId Directs both stdout & stderr to the I/O channel identified by fileId * & Indicates pipeline should be run in background (last argument) -- -Shawn |