home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / tcl / 1186 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.2 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!dde!kim
  2. From: kim@dde.dk (Kim Andersen)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: starting scripts
  5. Message-ID: <1992Aug13.143044.14473@dde.dk>
  6. Date: 13 Aug 92 14:30:44 GMT
  7. References: <1992Jul27.195132.28767@dde.dk> <1992Aug10.081408.3782@cc-mac.nbn.com>
  8. Organization: Dansk Data Elektronik A/S
  9. Lines: 27
  10.  
  11. dv@cc-mac.nbn.com (David Vezie) writes:
  12. [lines deleted]
  13. >#! /usr/local/wish -f
  14. >true ' { '
  15. >exec /usr/local/wish -f $0 $*
  16. >}
  17.  
  18. >Inserting this at the beginning of your script (substituting
  19. >the /usr/local/wish for your path to wish) should guarantee
  20. >wish startup (the first line is seen as a command by itself
  21. >to the bourne shell, so the bourne shell runs the second line.
  22. >The first line (thanks to the single quotes and curly braces)
  23. >is continued on the next two lines in wish/tcl, so is ignored.
  24.  
  25. >I've tested this on SunOS 4.1.1 (my machine), but not on System V,
  26. >but I think it'll work.
  27. >-- 
  28. >--
  29. >David Vezie dv@sonoma.edu,dv@xnet.ssl.berkeley.edu
  30.  
  31. Thanks alot.
  32. It does work on a "pure" System V platform.
  33.  
  34. -- 
  35. -- 
  36. Kim Andersen @ Dansk Data Elektronik A/S, Herlev, Denmark.
  37. E-mail: kim@dde.dk   or    ...!uunet!mcsun!dkuug!dde!kim
  38.