Hi all,
I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too).
//----------------------------------------------------------------//
# ./startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/
Using... (1 Reply)
hi,
I need a command that restart the tomcat server.
for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script.
like using the grep and ps commands can i use?... (2 Replies)
Hello,
I have a socket programming code to do chatting(both server and client).
But this is limited to a single machines with multi users.
But my target is to perform chat operation on multiple IP addresses in a given LAN in college.
Can you please tell me if I can use TOMCAT as my server to... (3 Replies)
I do not know the difference between the apache-http and the apche-Tomcat.Is they are differentiated on their version or on their features.:confused: (2 Replies)
Hello all,
I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Hi All,
I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)
Hi,
I have installed
following software on my linux machine.
Is there anything else required to run jsp pages on linux machine?
Please Help
Here are some details that might be helpful.
# lsb_release -a
LSB Version: ... (3 Replies)
Hi,
We have a OEL6.1 installed on our server.
We want developers to view there application logs generated on the server, but doesn't really want to give them access to server machine.
Can someone please suggest how can we configure apache/httpd to create a url which will show all files in... (1 Reply)
Hi all,
on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5,
and the timewait to 120 second,
so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Hi,
I have been assigned a task to build a server with these requirements :
> has multiple tomcats running under the same apache.
> tomcat & jdk has to be binded with apache.
> latest openssl with all necesarry "mod" to bind with apache & tomcat.
I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies
LEARN ABOUT DEBIAN
netsds::app::smtpd
NetSDS::App::SMTPD(3pm) User Contributed Perl Documentation NetSDS::App::SMTPD(3pm)NAME
NetSDS::App::SMTPD
SYNOPSIS
use NetSDS::App::SMTPD
PackagesNetSDS::App::SMTPD::Socket
Needs for work with socket. This module is a parent for NetSDS::App::SMTPD and NetSDS::App::SMTPD::Client and a child of a NetSDS::APP
ITEMS
create_socket
Creating a simple socket which could be transformed into a listening in NetSDS::App::SMTPD and could be used in
NetSDS::App::SMTPD::Client for accept connection
can_read
This method uses for making a timeout before connections to the server: if there is no connections to accept, program would be just
waiting in select while the connection appeared.
close_socket
Close socket
NetSDS::App::SMTPD::Client
Provides the smtp protocol bu using Net::Server::Mail::SMTP. Had attributes: smtp - an object of Net::Server::Mail::SMTP, ip - ip of the
remote host, headers - ref hash with headers of a message, msg - a body of a message.
ITEMS
set_callback and process
All that subs do - its only call the methods of a Net::Server::Mail::SMTP with the same name.
get_mail
In this sub we parse message and set headers of the object and message body. This sub is call as a callback on event DATA
get_header and get_msg
Get methods that make you access to a header of a msg and message body. Example: $client->get_header('FROM') or
$client->get_header('to');
NetSDS::App::SMTPD
This module init a smtp-server.
ITEMS
create_socket
Init a listening socket by creating a simple socket Super::create_socket and make it listening.
data Takes - a message that has been received, parses them and prepare the structure of headers, body for next actions
accept Waiting for an smtp connection and that accept it.
data
process
Example
#!/usr/bin/env perl
use strict;
use warnings;
Receiver->run(
infinite => 1,
debug => 1,
verbose => 1,
conf_file => '../conf/mts-receiver.conf',
);
1;
package Receiver;
use base 'NetSDS::App::SMTPD';
sub process {
my $self = shift;
my $client = $self->SUPER::process;
#do something with msg;
my $from = $client->get_header('from');
my $msg = $client->get_msg;
.....
return $self;
};
or you could reinit process like this:
sub process {
my $self = shift;
my $client = $self->accept;
return unless $client;
$client->process;
#do something
......
$client->close;
return $self;
};
AUTHOR
Yana Kornienko <yana@netstyle.com.ua>
perl v5.10.1 2010-04-28 NetSDS::App::SMTPD(3pm)