Showing posts with label Check. Show all posts
Showing posts with label Check. Show all posts

Tuesday, October 17, 2017

Check Linux/Unix System Version

Create executable file using this below mentioned script and execute file.

#!/bin/sh
[ -r /etc/lsb-release ] && . /etc/lsb-release

if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
# Fall back to using the very slow lsb_release utility
DISTRIB_DESCRIPTION=$(lsb_release -s -d)
fi

printf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)"
echo ""
cat /etc/redhat-release


Send email using TELNET and Sendmail protocols

Send Email Using Telnet 

Note : We use the domain mailserver.co.in as an example. Be sure to replace with your own domain.
  • Open your command prompt.
  • Now, connect with telnet using the following command:
telnet mailserver.co.in 25

  • Type ehlo example.com. Some servers also accept helo in place of ehlo.

ehlo 
mailserver.co.in


  • Type mail from: sender@mailserver.co.in:


mail from: sender@mailserver.co.in


  • Type rcpt to: receiver@anydomain.com (replace with your actual recipient name):


rcpt to: 
receiver@anydomain.com


  • To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter:


data
Subject: My Telnet Test Email
Hello,
This is an email sent by Minder server using the telnet command.
Your friend,
Me
.


Type quit to 
exit telnet.


Now you should receive Test email sender@mailserver.co.in to receiver@anydomain.com