6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi everobody
kindly consider the following
in tclsh
I understand that we can do the following
%exec UnixCmd arg1 arg2
but if I assinged the arguments to a list insde tclsh how can I use them back
i.e
%set ArgList
%exec UnixCmd
%exec Unixcmd $list
%exec
all the... (1 Reply)
Discussion started by: Blue_shadow
1 Replies
2. Shell Programming and Scripting
As a part of learning shell scripting I was just going through some already created scripts there I found-
exec tclsh "$0" $(1+"$@")
Here I was able to find what exec ,tclsh does & o/p of same but I could not find usage & output of $(1+"$@").
Can anybody pls expalain me usage details of it? (5 Replies)
Discussion started by: rediffmail
5 Replies
3. Programming
As a part of learning shell scripting I was just going through some already created scripts there I found-
exec tclsh "$0" $(1+"$@")
Here I was able to find what exec ,tclsh does & o/p of same but I could not find usage & output of $(1+"$@").
Can anybody pls expalain me usage... (1 Reply)
Discussion started by: rediffmail
1 Replies
4. Shell Programming and Scripting
Hi,
I am having a problem, with setting the FS in TCLSH, maybe someone knows the answer.
I have a Tclsh/Tk script, and i´m trying to get all (only) the running processes for the given user like this:
foreach process {
puts stdout $process;
}
This also works, but... (2 Replies)
Discussion started by: laptop87
2 Replies
5. Shell Programming and Scripting
Hello,
I got a file I am using, but I cannot understand what this file is doing...
Can someone explain?
Here is a part of the file:
#! /usr/bin/tclsh
set mctal r]
set pow
set SS
set a
set b
set c
set d
set e
set f
set g
set h (0 Replies)
Discussion started by: jolecanard
0 Replies
6. Shell Programming and Scripting
Hello,
I am new to this site, so sorry ahead of time if this is not the right place for this question.......anywhooooo
I am having troubles with forking new processes in wish. Take the following code example:
****************************
package require Tclx
puts "TCL VER: "
proc... (3 Replies)
Discussion started by: pghamami
3 Replies
tclsh(1) Tcl Applications tclsh(1)
__________________________________________________________________________________________________________________________________________________
NAME
tclsh - Simple shell containing Tcl interpreter
SYNOPSIS
tclsh ?-encoding name? ?fileName arg arg ...?
_________________________________________________________________
DESCRIPTION
Tclsh is a shell-like application that reads Tcl commands from its standard input or from a file and evaluates them. If invoked with no
arguments then it runs interactively, reading Tcl commands from standard input and printing command results and error messages to standard
output. It runs until the exit command is invoked or until it reaches end-of-file on its standard input. If there exists a file .tclshrc
(or tclshrc.tcl on the Windows platforms) in the home directory of the user, interactive tclsh evaluates the file as a Tcl script just
before reading the first command from standard input.
SCRIPT FILES
If tclsh is invoked with arguments then the first few arguments specify the name of a script file, and, optionally, the encoding of the |
text data stored in that script file. Any additional arguments are made available to the script as variables (see below). Instead of
reading commands from standard input tclsh will read Tcl commands from the named file; tclsh will exit when it reaches the end of the
file. The end of the file may be marked either by the physical end of the medium, or by the character, "