I am using unix os and tcl/tk.I will tell my requirement below:
I have three .csh files and each file contains differant path setting and environment settings.I want
to use tk and source the .csh file.For an example,in
unix terminal if i type "source one.csh" it is setting...
hi ulis,
I have one user .csh files which contains some setenv and alias commands. I want to source this file using tcl script. As you mentioned that "When you run a Tcl script you are using a child of this first csh shell. And when the Tcl script will exit all the updates of the...
Hi all,
I want to source the .cshrc file using tcl/tk.
my .cshrc file contains follwoing:
alias herc1 'set path = (/home/user/her1/bin $path)
alias her2 'set path = (/home/user/her2/bin $path)
That what i am doing in my terminal window,
source .cshrc
herc1
which herc...
hi uis,
Thanks.your code works fine.But if i want to give some command line options for my executable how can i do that?
example:
{exec1 /usr/path1/exec1 -version}
{exec2 /usr/path2/exec2 -version}
If i give like this it is not taking -version option why?
Thanks
roto
hi ulis,
It is working fine without error in tcl.but after adding the above path command if i use echo $PATH in unix command line option,it is not listing the path setted by tcl.
my requirement is,
we have some 6 to 7 excutable ore there in differant bin directory.according to...
hi ulis,
I have some path seting inside the .csh file.
When i source /user/home/abc.csh in unix command line
then i can use galdiator & (This is excutable)
When i do the same using tcl like
exec csh /user/home/abc.csh
it is running fine without any problem.
But when i...
hi ulis,
yes,now it is ok. But it is not doing what i expected.
this what i am doing in unix commmand:
source /home/user/abc.csh
if i try to do the same in tcl, i used
exec csh /home/user/abc.csh
tcl is not giving and errors but it is not working what it worked in unix...
hi ulis,
i can execute thru command line.i just want to execute thru tcl/tk.
how can i execute the follwoing unix command thru tk?
source /user/home/abc.csh
Thanks
Roto
hi bob,
yes,i even used exec /user/home/abc.csh it is saying
ERROR:couldnt execute "/user/hime/abc.csh" no such file or directory.
The file is there in correct location.
What might be the problem.
Thanks
Bob
hi ulis,
I have some executable files under the directory /user/a/bin/hera and /user/a/bin/herb
The executable file name is x
so depends upon the variable hera or herb i want to select the path and execute file x.
Accroding to you i can set the path.after seting the path i could...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.