Hi,
I am very new to perl. I am just using the perl script to run this application. I have
this perl script in unix and i need to convert it to windows . can anyone help me? The
error message that it shows when i run this script is , it cannot identify the "HUP".
and i don't know what is that? the script is as the following:
#!/usr/local/bin/perl
$LOGPATH='D:/apache/apache/logs';
@LOGNAMES=('access_log');
$PIDFILE = 'http://httpd.pid';
$MAXCYCLE = 4;
chdir $LOGPATH; # Change to the log directory
foreach $filename (@LOGNAMES) {
for (my $s=$MAXCYCLE; $s >= 0; $s-- ) {
$oldname = $s ? "$filename.$s" : $filename;
$newname = join(".",$filename,$s+1);
rename $oldname,$newname if -e $oldname;
}
}
kill 'HUP',`cat $PIDFILE`;
Pls assist me. Thank you.
Disclaimer note:
Confidential information may be contained in this e-mail and any files transmitted
with it ('Message'). If you are not the addressee indicated in this Message (or
responsible for delivery of this Message to such person), you are hereby notified that
any dissemination, distribution, printing or copying of this Message or any part
thereof is strictly prohibited. In such a case, you should delete this Message
immediately and advise the sender by return e-mail. Opinions, conclusions and other
information in this Message that do not relate to the official business of Maxis shall
be understood as neither given nor endorsed by Maxis.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]