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