Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rotomac

    how to execute "source" command in tk?

    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...
  2. rotomac

    how to soure unix .cshrc file using tcl/tk?

    hi ulis, Fine. So you mean to say that there is no way to set the unix environment by tcl? Thanks Roto
  3. rotomac

    how to soure unix .cshrc file using tcl/tk?

    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...
  4. rotomac

    how to soure unix .cshrc file using tcl/tk?

    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...
  5. rotomac

    can any one help me to "set path" unix command using tcl script?

    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
  6. rotomac

    can any one help me to "set path" unix command using tcl script?

    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...
  7. rotomac

    how to execute "source" command in tk?

    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...
  8. rotomac

    how to execute "source" command in tk?

    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...
  9. rotomac

    how to execute "source" command in tk?

    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
  10. rotomac

    how to execute "source" command in tk?

    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
  11. rotomac

    how to execute "source" command in tk?

    hi, i want to source file using tk. source /home/user/abc.csh how can i do it using tk? roto
  12. rotomac

    can any one help me to "set path" unix command using tcl script?

    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...
  13. rotomac

    can any one help me to "set path" unix command using tcl script?

    Hi, I just want to know how can i set the path in unix by using the tcl script. ex: if { $hera == 1 } { exec set path = /user/a } } Thanks

Part and Inventory Search

Back
Top