-
Notifications
You must be signed in to change notification settings - Fork 0
/
clotho.pl
executable file
·38 lines (31 loc) · 1.03 KB
/
clotho.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/perl
# Copyright (c) 2004-06 Nikolaos Loutas <clotho@loutas.com>. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
# Clotho contains no adware, spyware, nagware or other unhealthy additives.
### Clean up environment
$ENV{'PATH'} = '/bin:/usr/bin';
$ENV{'SHELL'} = '/bin/sh' if defined ($ENV{'SHELL'});
$ENV{'IFS'} = '' if defined ($ENV{'IFS'});
$ENV{'CDPATH'} = '';
use strict;
use lib "/export/home/nloutas/public_html/clotho/lib";
$::CLOTHO_HOME = (-d "/export/home/nloutas/public_html/clotho") ? "/export/home/nloutas/public_html/clotho" : "/home/nloutas/public_html/clotho";
$::error_log = "$::CLOTHO_HOME/logs/error.log";
use Clotho::Init;
{
&Clotho::Init::init();
print $::header, $::content;
&Clotho::Init::end();
}
#::syslog ('error', Dumper(\%ENV)); use Data::Dumper;
exit (1);
sub END () {
# kill any pending processes
if ($@) {
::syslog ('warning', 'killing undead handlers');
kill (KILL => -$$);
}
}
1;
__END__