# date +%s -d "Mon Feb 11 02:26:04"
1360567564
# perl -e 'print scalar localtime(1360567564), "\n";'
Mon Feb 11 02:26:04 2013
the epoch conversion is working fine. but one of my application needs 13 digit epoch time as input
1359453135154
rather than 10 digit epoch time 1360567564... (3 Replies)
Hi
Not sure if this can be achieved by unix , but still would like to know if there is any way by which I can do the below given logic
cat sam1 > out1
cat sam2 > out2
when either one of this finished the the next file shd be written in that file, meaning
cat sam3 >> out1/out2... (2 Replies)
Dear experts,
I have an epoch time input file such as : -
1302451209564
1302483698948
1302485231072
1302490805383
1302519244700
1302492787481
1302505299145
1302506557022
1302532112140
1302501033105
1302511536485
1302512669550
I need the epoch time above to be converted into real... (4 Replies)
RunApp::Apache(3pm) User Contributed Perl Documentation RunApp::Apache(3pm)NAME
RunApp::Apache - Apache control for RunApp
SYNOPSIS
use RunApp::Apache;
$apache = RunApp::Apache->new
(root => "/tmp/apache_run",
report => 1,
apxs => '/usr/local/sbin/apxs',
# httpd => '/usr/local/sbin/httpd',
required_modules => ["log_config", "alias", "perl", "mime"],
config_block => q{
[% IF AP_VERSION == 2 %]
eval { use Apache2 };
eval { use Apache::compat };
[% END %]
<Location /myapp>
AllowOverride None
SetHandler perl-script
PerlSetVar approot [% cwd %]
PerlHandler MyApp
Options +ExecCGI
</Location>
});
DESCRIPTION
This is the class for defining a apache web server to be used in RunApp.
CONSTRUCTOR
new (%arg)
Required arg:
root
The root for the apache instance.
apxs
httpd
If "apxs" is specified, "httpd" will be derived from it.
required_modules
A arrayref to the apache modules required.
config_block
The config block that will be the extra block in the template used by RunApp::Template::Apache.
CTL The class for handling apachectl. The default is RunApp::Control::AppControl. You can also use RunApp::Control::ApacheCtl.
CONF
The class for handling apache config. The default is RunApp::Template::Apache. It is used in the "build" phase of RunApp
SEE ALSO
RunApp, RunApp::Control::Apache, RunApp::Template::Apache, App::Control
AUTHORS
Chia-liang Kao <clkao@clkao.org>
Refactored from works by Leon Brocard <acme@astray.com> and Tom Insam <tinsam@fotango.com>.
COPYRIGHT
Copyright (C) 2002-5, Fotango Ltd.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.8.8 2008-01-09 RunApp::Apache(3pm)