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 TouchToneTommy 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: *

  • Users: Bong
  • Order by date
  1. Bong

    Python Code - TypeError: loop over non-sequence

    Perhaps a stupid question: are you certain the file, cbl_data.cfg, is in the the current working directory? Have you tried fully qualifying the file name in field_list = create_field_list('cbl_data.cfg')? _________________ Bob Rashkin
  2. Bong

    Triggering automatically a script at a certain time and generate notfication mails out of it.

    I think it depends on your platform. On Linux and UNIX systems you could run your script from a cron job. On Windows (at least the versions through XP; I don't know anymore) there was an AT configuration that would do something similar. _________________ Bob Rashkin
  3. Bong

    Make Linux Mint Look & Feel Like Windows

    I haven't followed the entire thread but have you considered Bodhi? I use it exclusively but I don't have a real need to be compatible with Windows users. That is, I have LibreOffice and make do with their export (.docx, .pdf,...) when I need to. There are some things you just can't get for...
  4. Bong

    tcl script to extract the nos

    All well and good, but I would use split and lindex _________________ Bob Rashkin
  5. Bong

    to hide menu keeping shortcut Alt F of Alt H working

    Are you talking about an IDE or a menu that you made yourself? _________________ Bob Rashkin
  6. Bong

    Find duplicate files from different directories

    I personally no longer have a platform that runs Tcl BUT... it's not a hard problem. Look at the "file" and "glob" functions. Start with just the directories, not the sub-directories. Remember that in Tcl, arrays are hashed so you can have something like "filenames(xyz/abc/qrl.ext)=n" where n is...
  7. Bong

    How to check if a label is in menu or not?

    As far as the number of entries: pathName index last should work. I don't see how you can get around your first question unless you catch the error. _________________ Bob Rashkin
  8. Bong

    Newbie Question about procedures

    There is sort of an exception when dealing with Tk GUI's. If you invoke a procedure from, say, a button, that procedure doesn't have to be defined in preceding lines. Obviously it must be defined by the time the user pushes the button. _________________ Bob Rashkin
  9. Bong

    New to TCL programming need some help

    OK. You say you have the case sensitivity issue resolved but let's review. The list (dictionary) should be all lower case. Then you use "string tolower ..." on each word being tested. Then on the words that fail, use regsub to remove everything but the letters. So let's say you have a word...
  10. Bong

    New to TCL programming need some help

    What form does your dictionary have (a list of valid words?)? _________________ Bob Rashkin
  11. Bong

    Serial Port Read from Agilent E3648A Power Supply

    Try "flush". _________________ Bob Rashkin
  12. Bong

    exec does not work

    Usually, I think that means that some substitution needs to be made prior to "exec". I don't see what that would be but oh well. _________________ Bob Rashkin
  13. Bong

    exec does not work

    Sometimes, scope is peculiar. Try, just to see what happens, building the command string outside the proc and passing it in as an argument. _________________ Bob Rashkin
  14. Bong

    assigning strings in conditional expressions

    try escaping the colon: "\:" _________________ Bob Rashkin
  15. Bong

    eval [exc] does not work

    Why are you using "eval"? That is, go ahead and try just "exec"ing the commands. _________________ Bob Rashkin
  16. Bong

    Search for a string in a list element

    For me, lsta=['/home/myfiles/abc.bob/a file','/home/myfiles/abc.bob/b file','/home/myfiles/bbb.bob/a file'] abccount=0 for a in lsta: if 'abc.bob' in a: abccount+=1 print abccount yields 2, as it should. You can also achieve the same result with list comprehension...
  17. Bong

    eval [exc] does not work

    Are you expecting any connection from one command to the next? That is, if you're thinking the Perl execution will update variables to be used in the next Perl execution, you'll be disappointed. _________________ Bob Rashkin
  18. Bong

    trying to replace part of a line with a variable found later in a file

    Unless your file is so huge you can't (>500MB?) I would read the entire file into a list. set lstIN [split [read OLD_FILE] \n] Then you can keep track of the indices of the lines you want to change and change them. Then you can write the new/modified list out when you're done. foreach str...
  19. Bong

    Tcl Client-Server protocol

    I don't think so but you can use threads. (scroll down to "A Cookbook Approach") _________________ Bob Rashkin
  20. Bong

    Tcl Client-Server protocol

    In 8.6 (at least)... chan 1. Is there any way a client can check if the server is busy with another client? check out chan pending 2. Can i close all client connection from the server session? how? Try chan close. I haven't ever used it. . How can i stop the server session (stop listening)? i...

Part and Inventory Search

Back
Top