nico wrote:
another little question, how to deal with [shell] and path
because the result of wish1.tcl return / path when i launch it with [shell], or i would like it to return the /containing/wish1.tcl/directory/ ? is it possible to change the current working directory with [shell]
(cd command don't work)
"cd" _does_ work with [shell]
but:
when you send a command to [shell], it will create a new instance of shell (rooted at "/"), execute the script and quit. if you send another command to [shell], it will create another new instance of shell (again, rooted at "/"), execute the script and quit.
so if you send "cd /tmp" to [shell], it will change (from "/") into the directory "/tmp" and quit. if you then send "ls" to [shell], it will list the contents of the current directory ("/").
for a solution read x's mail (put "cd" into the scrip)
mfg.a.dr IOhannes