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 Chriss Miller 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: *

  1. tomdagliusa

    adding sshd

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

    forcing precision

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

    forcing precision

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

    ssh and 3des

    Did some more digging. If you go to /etc/ssh/ssh_config, you will see what Cipher your system is using. Tom
  5. tomdagliusa

    ssh and 3des

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

    size of expect buffer

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

    advantages/disadvantages of proc call

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

    advantages/disadvantages of proc call

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

    killing a process

    Doug, That's the ticket. Thank You. Tom
  10. tomdagliusa

    killing a process

    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&quot...
  11. tomdagliusa

    grep and the infix operator

    Thank You.
  12. tomdagliusa

    grep and the infix operator

    The grep man page states: Two regular expressions may be joined by the infix opera­tor |; 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...
  13. tomdagliusa

    stopping the interpretor

    HI Marsd, With a question like that, you give me much more programming credit than I deserve. Ulis was right, it was bad coding. Tom
  14. tomdagliusa

    stopping the interpretor

    Ulis, I did a version of what you suggested: switch -glob -- $cmd { "a" {} "b" {} "c" {} "x" {} "y" {} "z" {} "no a*" - "no b*" - "no c*" {...} "no x*" -...
  15. tomdagliusa

    stopping the interpretor

    Ulis, I was trying to group all the no commands under one switch argument without having to make an entry for each. Is there a way to do that? Tom
  16. tomdagliusa

    stopping the interpretor

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

    Where does tclIndex file go?

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

    Where does tclIndex file go?

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

    Where does tclIndex file go?

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

    switching on variables

    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

Part and Inventory Search

Back
Top