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