Thanks for your response Trojan. From the sendmail release notes for v8.13:
"The Linux kernel version 2.4 series has a broken flock() so change to using fcntl() locking until they can fix it. Be sure to update other sendmail related programs to match locking techniques"
This script scans...
Hi All,
I've got a problem with a script running on a Linux 2.4 kernel where 'flock' is apparently broken. Therefore I'm thinking of using the 'fcntl' wrapper.
Here's the existing flock call:
$retval = flock(QF, $LOCK_EX|$LOCK_NB)
So, I need to create an exclusive lock on an entire file...
Hi All,
How do I find the size (in bytes) of a scalar?
Specifically, I want to find the size of a string (including control chars etc) in memory.
Thanks, rotis23
sorry - "doesn't work" means that $smtp is undefined i.e. there was an error within the SMTP module.
ishnid - square brackets do work. Why?
fishiface - @SMTPServerList is declared in main as:
$SMTPServerList[0] = '127.0.0.1';
$SMTPServerList[1] = '127.0.0.2';
Thanks for your help people...
Hi All,
Got a problem using a reference to a main array within a package.
Why does this not work:
my $smtp = Net::SMTP->new(\@main::SMTPServerList, Timeout => $main::SMTPServerTimeout);
and this work:
my @templist = @main::SMTPServerList;
my $smtp = Net::SMTP->new(\@templist, Timeout =>...
I would rather make the client tolerable of this problem that apply fixes to the firewall or server. This way the client can tolerate network outages and other failures that ungracefully terminate the connection.
Apparently I can use SO_KEEPALIVE socket option to maintain a heartbeat within the...
Hi All,
I have a process that is having it's (MySQL DBI and Net::LDAP) connections terminated by a firewall after a period of inactivity. The problem is that the process (client) doesn't know this and attempts to read (well, actually the ldaps earch function and the mysql do function) from a...
Hi All,
What's the difference between declaring an array using square or normal brackets?
Does it create a reference if they're square?
Thanks, rotis23
What I really need to do is to grab a value from the data structure based on another value. e.g.:
Get MORE_DATA from the data structure where VALUE = 10.
I know I can do this using an array and it's index, but the values aren't sequential from 0.
I guess the other alternative is to search...
Hi All,
Wonder if you can help me because I'm getting bogged down with this.
I have an application written in Perl that includes several modules and they all reference a Constants.pm module for obvious reasons.
Now, I have some constants that are more complex than just a number and I've been...
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.