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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by macd68

  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.

Part and Inventory Search

Back
Top