09-10-2014
Mail related
I have maintaining 16 client PCs.I want to get a mail from client PCs whenever any one of the services are not working.Services like postgres ,sms , jts and synch etc.,The Client PCs are remotely placed.I want to develop this through shell script ,But I don't have an idea to develop this script.Please give me a script code for this concept.
This is mail id information,
* My mail id -
abc@gmail.com
Client PCs are Client PC1 to Client PC16
I am expecting like as,
For eg:
If postgres service is stopped in client PC1 , then it automatically send the mail to my mail id . This is I want .
Mail information like ,
Please check here the postgres service is stopped please check and restart the service from this client PC1.
Last edited by kannansoft1985; 09-10-2014 at 11:44 AM..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I try to use the CLI mail, I get the following error. What's wrong?
Welcome to Darwin!
% mail root
Subject: test
test
.
EOT
% /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
2. Solaris
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
4. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
5. UNIX for Dummies Questions & Answers
How do i configure my linux machine to send mail.
I have two server out of which one is configured to send mails. However The other is still not sending mails .I have installed sendmail rpms and modified
sendmail.mc file to include following parameter.
dnl define(`SMART_HOST',... (0 Replies)
Discussion started by: pinga123
0 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file
See the below link-
http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs-
Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies
7. UNIX for Dummies Questions & Answers
I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client.
Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies
8. UNIX for Advanced & Expert Users
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies
9. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT DEBIAN
mojo::ioloop::client
Mojo::IOLoop::Client(3pm) User Contributed Perl Documentation Mojo::IOLoop::Client(3pm)
NAME
Mojo::IOLoop::Client - Non-blocking TCP client
SYNOPSIS
use Mojo::IOLoop::Client;
# Create socket connection
my $client = Mojo::IOLoop::Client->new;
$client->on(connect => sub {
my ($client, $handle) = @_;
...
});
$client->on(error => sub {
my ($client, $err) = @_;
...
});
$client->connect(address => 'mojolicio.us', port => 80);
DESCRIPTION
Mojo::IOLoop::Client opens TCP connections for Mojo::IOLoop.
EVENTS
Mojo::IOLoop::Client can emit the following events.
"connect"
$client->on(connect => sub {
my ($client, $handle) = @_;
...
});
Emitted safely once the connection is established.
"error"
$client->on(error => sub {
my ($client, $err) = @_;
...
});
Emitted safely if an error happens on the connection.
ATTRIBUTES
Mojo::IOLoop::Client implements the following attributes.
"reactor"
my $reactor = $client->reactor;
$client = $client->reactor(Mojo::Reactor::Poll->new);
Low level event reactor, defaults to the "reactor" attribute value of the global Mojo::IOLoop singleton.
METHODS
Mojo::IOLoop::Client inherits all methods from Mojo::EventEmitter and implements the following new ones.
"connect"
$client->connect(address => '127.0.0.1', port => 3000);
Open a socket connection to a remote host. Note that TLS support depends on IO::Socket::SSL and IPv6 support on IO::Socket::INET6.
These options are currently available:
"address"
Address or host name of the peer to connect to, defaults to "localhost".
"handle"
Use an already prepared handle.
"local_address"
Local address to bind to.
"port"
Port to connect to.
"timeout"
Maximum amount of time in seconds establishing connection may take before getting canceled, defaults to 10.
"tls"
Enable TLS.
"tls_ca"
Path to TLS certificate authority file. Also activates hostname verification.
"tls_cert"
Path to the TLS certificate file.
"tls_key"
Path to the TLS key file.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::IOLoop::Client(3pm)