Tclsh file command




















There is no automatic evaluation of. If you create a Tcl script in a file whose first line is! Many UNIX systems do not allow the! An even better approach is to start your script files with the follow- ing three lines:! First, the location of the tclsh binary does not have to be hard-wired into the script: it can be anywhere in your shell search path.

Second, it gets around the character file name limit in the previous approach. The next words represent the arguments. As said before, we have used "" to group two words. Here, stdout makes the program to print in the standard output device.

In command substitutions, square brackets are used to evaluate the scripts inside the square brackets. TCL is shell application that reads TCL command from its standard input or from a file and gives desired results. TCL is string based scripting language and also a procedural language. It was first created by John Osterhout in The purpose of developing this language is easy embedded inti applications.

FILE variable can be used to be the existing file being edited. ID variable can be used to be the key of the current record being edited. All verbs start with a V.

The name of the program to execute is specified by the second line. The type of the program is specified on the third line. Possible options are:. Keywords start with a K. Optional parameters are specified between question marks.

The -nonewline switch suppresses the newline character. By default, the command puts a newline to each message. The channelId must be an identifier for an open channel such as the Tcl standard input channel stdin , the return value from an invocation of open or socket. It defaults to standard output channel stdout if not specified.

Finally, the string is the message to be printed. The puts command prints a message to the console. Both command invocations do the same thing.



0コメント

  • 1000 / 1000