Category Archives: Uncategorized

tee’ing perl output

I may want to output info both to screen and sometime to a log file. Perl Cookbook recipe 13-9 offers one approach with Tie::Tee.

I also found a thread at http://perl.org.il/pipermail/perl/2003-June/002302.html where Mark Dominus offered:

{
my $teefile = "/tmp/teefile";
open my $fh, ">", $teefile or die $!;
open SAVE_STDERR, ">&STDERR" or die $!;
tie *STDERR, 'TEE', *SAVE_STDERR, $fh or die $!;
}

die "I like pie.n";

package TEE;

sub TIEHANDLE {
my $package = shift;
my @handles = @_;
bless @handles => $package;
}

sub PRINT {
my ($self, $data) = @_;
for my $fh (@$self) {
print $fh $data;
}
}

Trouble joining the domain – RPCPing

I’m trying to join a system to the domain, and I’m getting an error:

The following error occured attempting to join the domain “campus.ad.uvm.edu”
The RPC Server is unavailable

I’ve used a utility in the past called rpcping, part of the server resource kit. I technical article is available at:

http://support.microsoft.com/default.aspx?scid=kb;en-us;177446

OK. Things look reasonable.

The other tool I’ve used is portqry.exe:
http://support.microsoft.com/?id=832919

Student Life migration complete

The Department of Student Life has been migrated off Gemini to Active Directory. There were bumps along the way, and there are a few remaining details to work out.

  • Macintosh assimilation
  • Plan for delegated security groups without a full OU
  • Server-version of their imagerunner 330e

That’s all I can think of at this point.