Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2001 > September 2001

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.




MarketPlace

Free Download Speeds Up PCs
Make Your PC Faster --New Diskeeper 2008 Speeds Up PCs --Download Free Trial Now!

Automate Software Builds with Visual Build Pro
Easily create an automated, repeatable process for building and deploying software.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Discover WinDev 12 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Wanna see your ad here?