Questions and Answers
Amy Rich
In last month's issue, we had a question regarding the differences between
SAN and NAS. The answer given had the explanations of the two reversed. NAS
(like NetApp) are storage devices attached to the network and SAN (like EMC)
are storage devices attached to a computer via fiber/SCSI. We regret any confusion
resulting from this error -- the editors.
Q: I'm trying to put a Perl script into my .forward to handle
a bunch of spam that I get. My .forward looks like the following:
|/home/jr/scripts/spamcull.pl
When I get mail, I receive a message stating "Service Unavailable". Is there
some other way I should be calling the script from my .forward?
I'm using Red Hat Linux 6.2.
A: You may want to consider something like Procmail (http://www.procmail.org/)
to do spam culling for you instead of trying to roll your own script. procmail
is a powerful recipe-based filter that you can stick in as the LDA or call from
.forward. As to why you're getting "Service Unavailable", this
sounds like it may be a smrsh problem. Are you using smrsh
in conjunction with Sendmail? If so, you may need to symlink your script into
your smrsh directory (often /etc/smrsh or /etc/mail/smrsh).
Q: I want to write a quick Perl script that takes a bunch of file names,
reads them in, and stores them. I know how to do this sequentially, but it seems
like this would be the right place to put in a function. Is there a quick "read
and assign" function to which you can point me?
A: You'll want to iterate through a loop of file names and perhaps
do an array of arrays for the actual assignments in the main loop.
|