I have a machine which does not have sshd in the /usr/bin subdir. Can I just copy over an sshd from another machine, or do I have to tell the os via some other mechanism, say mod perhaps, or neither?
Thanks,
Tom
First of all, thank you to all for replying.
I tried the format %4.6f which still truncated, but did it
more precisely, i.e. 3006.120000 instead of 3006.117791.
I'm afraid set the global precision var as it may break other scripts.
I'm probably going to multiply out the decimal portion and...
Hi,
I have an embedded version of tcl inside of an app, and I think the version of tcl is older than God. The problem is that to the following command:
set x [expr $membernum * 601.3439942]
I get a result of 3006.72
instead of 3006.719971
I tried forcing a type by adding a double cast to...
I searched for these terms, but nothing.
How can I determine what key size my expect is using when I spawn an ssh session? I looked in /var/log/messages, and it tells me about the session, but no specifics, i.e. key size. Anything I can turn on, or a file I can look at down in the cellar...
I have a test which is failing, and I think it is due to the match not occuring within the size of the expect buffer. I tried changing the size using the match_max command, but it doesn't seem to be working. Is this the right command, or is another available?
Thanks,
Tom
Hi Ken,
Thanks for the tips on using args. As a practice however, I prefer to make the var names somewhat intuitive. For instance, the variable name "ifTruePerformFullTest" is explicit enough, and especially so when viewed inline in the code. It may make the var names longer, but it...
Hi,
I prefer to write my procs so they accept a list on the call. This way, I can either key on certain attributes of the list to make decisions within the proc. This also has the added advantage of not requiring me to change any calls to the proc, as long as I make the changes backwards...
My dept. does a bad job of cleaning up old processes.
I would like to be able to su to root, and identify the processes, then kill them. I can identify them ok, but how do I access the process number which I need to send to the kill command? Let's say I pipe a ps auxw | grep "someTerm"...
The grep man page states: Two regular expressions may be joined by the infix operator |; the resulting regular expression matches any string matching either subexpression.
I searched this site and didn't find anything, nor could I understand how to use, or what is the infix operator | (which...
I have a switch where I am getting interpretation, but don't want to:
gist of code:
switch -glob -- $cmd {
"read" {blahblah}
"write" {other}
"no*" {
"no read" {no blahblah}
"no write" {no other}
}
}
When I run...
Ken,
I'm not doing an auto_mkindex, or any other compile like constructs. I'm merely running tcl files from the shell. I believe the issue was the existence of multiple files with the same procs, methods, and classes. As soon as I got rid of the ~ files, my code started acting as it should.
Tom
Ken,
Thanks for the reply. No, no C files or any of that stuff. Just plain old tcl text files. I believe the problem may have been caused by emacs leaving around versions of files. If I edit aFile.tcl in vi, and save it, only one version of that file exists. If I edit aFile.tcl in emacs, and...
If I don't explicitly do a make, is no tclIndex file created, and tcl just runs interpreted each time? I ask
because I made some changes to code, and it doesn't seem to have taken affect.
Tom
Thanks Ken. I get the gist of your explanation, but I printed it out for study tonight, and I'll take a look at the extended discussions you suggested.
Regards,
Tom
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.