etc_aliases_restore.pl
You've lost /etc/aliases and need it back tool.

Philip Mikal, Partner & Co-Founder

Did you blow out Sendmail's /etc/aliases? Where did it go? Restore from the aliases.db file with this handy and simple script.

./etc_aliases_restore.pl > /etc/aliases


use strict;
use warnings;
use DB_File;

our (%h, $k, $v);

my $db = "/etc/mail/aliases.db";

tie %h, "DB_File", 
	$db, 
	O_RDWR|O_CREAT, 
	0666, 
	$DB_HASH or die 
	"Can't open $db: $!";

while (($k, $v) = each %h) { 
	chop($k); 
	chop($v); 
	print "$k: $v\n" 
}

untie %h;

We offer training for all levels of Perl programming and Linux system administration. Available for corporations or individuals and specifically arranged to meet your needs.

Contact us to learn more about our custom training offerings.

Tony Hansmann To Address Goldman Sachs Investor Conference. (10/28/05)
Andrew Larsen hired as Vice President, Business Development. (03/21/05)
Level Acuity merges with Precept Consulting and relaunches as Open Source Consulting, LLC (11/01/04)
Level Acuity aquires employment website DBAJobs.com. (06/01/04)
Level Acuity sponsors January's meeting of the San Francisco Perl Mongers. (01/02/04)
Marketing campaign launched featuring ads on Perl.com and Google. (11/13/03)
Level Acuity, LLC announces the launch of their website. (11/11/03)

Contact us today!
+1-877-490-6030 (o)
+1-415-294-4429 (o)
+1-415-358-5887 (f)

Copyright © 2003-2005 Open Source Consulting, LLC. All rights reserved.