home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1926 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.0 KB

  1. Path: sparky!uunet!fed!fed.frb.gov!m1nss01
  2. From: m1nss01@fed.frb.gov (Neil S. Seftor)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Problem with an "exec" in a bind statement
  5. Message-ID: <9285@arccs1.fed.FRB.GOV>
  6. Date: 23 Nov 92 16:26:28 GMT
  7. Sender: usenet@fed.FRB.GOV
  8. Reply-To: m1nss01@fed.frb.gov (Neil S. Seftor)
  9. Organization: Federal Reserve Board, Wash, DC
  10. Lines: 15
  11.  
  12. I'm having a problem getting an exec to work inside of a bind statement:
  13.  
  14.     bind $w.frame.list <Double-Button-1> \
  15.       "exec copier restore \[lindex \[selection get\] 0\]"
  16.  
  17. where copier is a script with restore and the selection as parameters.
  18. Just in case it didn't like this, I tried an echo as the first line of the
  19. script, and got nothing.  I then tried a simple 'ls -l' of the selection,
  20. and got nothing.  It appears that it's not even doing the exec.  I've tried
  21. various and sundry combinations of ['s ('s and quotes, but nothing seems
  22. to work.  Any ideas?  Followup or reply as desired ... thanks.
  23.  
  24.     - Neil
  25. --
  26. "Give light and the people will find their own way."
  27.