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 Mike Lewis 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. macd68

    Autoexpect in Windows - can't get it to work

    Please post the final result here or at the Tcler's wiki when you get done. This could be useful for a lot of folks and I haven't googled similar or seen a windows example at the Tcler's wiki.
  2. macd68

    Autoexpect in Windows - can't get it to work

    Semmel, Expect is a recent addition to windows thanks to the very hard work of the Tcl Core group. I'd suggest that you comment out the chmod +x based on an env check for platform type. Please see the documentation for your proposed platform for what tcl's native 'file attributes' supports...
  3. macd68

    Need interactive beta testing software

    Expect. My advice is to tell him the assignment exceeds your capacity at the current moment and encourage an expert (consultant or otherwise) to come on board while you learn what you need from them.
  4. macd68

    /sbin/init failed! - kernel panic

    The bottom line here is that selinux is not a good mandatory addition. I really wish main line distributions would take it out of production. Sysadmins can decide where and when to include it.
  5. macd68

    implementing a hash table

    On second thought you could use a chained hashtable for this, but the buckets would get big quickly. Quick example: #include <stdio.h> #include <stdlib.h> #include <string.h> #define IMEMBERS 200 #define HASHLEN 211 struct hash_el_ { int pos[IMEMBERS]; struct hash_el_ *nxt; }...
  6. macd68

    Something is eating up all my memory!?! Please help!

    As the previous poster mentioned you need to thoroughly study your application logs. mysql, apache or your milter software. Sar as mentioned is a big help. You should really be running snmpd and trapping on load and application alerts.
  7. macd68

    TCL Expect Buffer and SSH Problem?

    Example code. This code is untested but the approach should work fine for you. #!/usr/bin/tclsh package require Expect set timeout 20 set prompt1 ".*asswor.*" set prompt2 ".*>." #customize the above to your system array set optarray {} proc getopt {str lst} { global optarray set cnt 0...
  8. macd68

    TCL Expect Buffer and SSH Problem?

    Try a newline...and make sure that the command is received.
  9. macd68

    expect ssh login help

    I can help you with the expect portion of this but I'm not much of a ksh guy. Have you taken a look at the comp.lang.tcl archives? There may already be an answer to your issue.
  10. macd68

    Write IP and login_name to file

    Your problem is a design and philosophy problem, not a technical issue.
  11. macd68

    Write IP and login_name to file

    The idea behind a 'dhcp table that changes all the time' is ridiculous. The dhcp service provides a lease time and many other configurable options and the dhcp client also keeps state. If you continually receive different addresses for the same host then you should check your dhcp service...
  12. macd68

    Dual processor support

    This isn't a good question. The linux kernel obviously supports SMP (since 2.2). If a distribution ships a broken kernel than you can always grab source and compile your own.
  13. macd68

    ntpd problem on red hat linux

    Are you logging and debugging (man ntpd)? Try this first before asking for help. That's what anyone here would do to fix the issue.
  14. macd68

    The Superblock could not be read

    Make sure that lvm support is loaded. Check the output of lsmod. Disregard obviously if other lvm filesystems are already mounted.
  15. macd68

    Remote X apps

    ssh -v(vv) is your friend. Try this and running the sshd daemon on the remote host in debug mode also. HTH.
  16. macd68

    Expect question

    Expect is nice for this but if you are using ssh* based services you can do password-less logins via keys., I suggest you look into this first.
  17. macd68

    Set manipulation

    An unordered collection of related items wherein no item occurs more than once." What I am interested in is set covering; unions of sets, intersections, differences, etc...pragmatic set operations. The C examples I've found use lists so I'm adapting for associative arrays.
  18. macd68

    Set manipulation

    Of course I've googled. None are on topic. Thx tho. :) I've adopted some examples from 'Mastering Algorithms in C'. I'll post if there is any interest.
  19. macd68

    My server is very slow

    Lot's of times with slow database behavior like this mysql's performance has not been optimized. You should really check the tuning tips for mysql and experiment. The default settings are NOT sufficient for a busy site. Also be very sure you have disabled debugging for PHP and check your...
  20. macd68

    more string checking

    xwb is sharp and I was going to let him ride, but...;) BUGS Avoid using these functions. If you do use them, note that: These functions modify their first argument. These functions cannot be used on constant strings. The identity of the...

Part and Inventory Search

Back
Top