File: //scripts.20110531.215904.25158/runweblogs
#!/usr/bin/perl
# cpanel4 - runweblogs Copyright(c) 1997-2004 cPanel, Inc.
# All rights Reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited
my($copyright) = 'Copyright(c) 1997-2004 cPanel, Inc. All rights Reserved.';
$| = 1;
print "Log checker loaded ok..\n";
$user = $ARGV[0];
$user =~ s/\n//g;
if ($user eq "") {
if (-t STDIN) {
print "What user's logs did you want to update? ";
$user = <STDIN>;
chomp($user);
} else { die "stdin is not a tty and no user was given to us"; }
}
$user =~ s/\n|\r|\s//g;
system("/usr/local/cpanel/cpanellogd","$user");