I have modified a script to do a circular DNS look up.
The theory is this
for a given subnet build a range if IP's
do a reverse look up on those IP's
take the output of the reverse look up then and do a forward look up
If the returns match up give a good status
If not return a fail status.
It runs really nice except when it runs into multi-homed IP's.
I am now trying to script in to check if the reverse lookup returns more than one entry, and if so then do a look up on any returns.
I might know the answer to this, but I just want to see if any of you know any work arounds before I go and re-write the whole thing.
I have a script as follow:
$ cat testing
#! /usr/bin/ksh
f ()
{
echo "Type \"y\" \c"
read value
if ;
then
... (1 Reply)
Writing a simple test script that looks for ssh, kills if its running and verifies if its still running. If it isn't, move on. My issue, its cause I don't know how, is to verify if ssh is running still. Also, is there a way have this do this on a remote server? I already have the ssh keys... (7 Replies)
I have tried thought of using instfix -ivqc | grep BIND , but this did not return the result I was looking for; it seem to list out the the different patches that had been applied to BIND. I'm actually looking for overall version, like you'd get when checking the OS level for instance. (1 Reply)
I re-post my question to seek your help and critique. I was required to verify a very large and tab-delimited file, named 'MyFile'.
1. The each line in 'MyFile' has 7 columns, and that the values in the 5th column are integers. I need to use shell functions (and standard LINUX/UNIX filters) to... (1 Reply)
Hello Experts,
I have a script that that transfers a file (via sftp) and it works fine but we ran into a snag where the target server asked for the ssh key and the script didn't know what to do. I want to add some logic to this script that at least sends an email that it didn't complete as... (4 Replies)
Hi Experts,
I have lot of Solaris servers and in most of them, root disk is mirrored in rootdg. I just want to check all servers, if there is any server whose root disk is not mirrored. Either it may be with detached plexes or not mirrored at all. I can run a for loop for all servers. Can... (4 Replies)
I have 2 files , i need compare both files field by field, and in the fourth field some value will be interchaged and some value will be **.
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2 john|0.0|4|JP:50;**:25;UY:25 (4 Replies)
i have a script that connects to the oracle database and executes the query statements. it works fine and i would like to add some message to check if the connection to oracle is not successful.
basically this is the code snippet:
#!/bin/sh
...
...
...
sqlplus -s username/password@dbName... (2 Replies)
Hi
I write below script to show if expected file exist in /etc/library/ , print success else failed. But it will print full path I just need to print module name in output. And if it possible show time that spent to compile each module.
FYI 1: First run another script just go to the paths... (1 Reply)
Discussion started by: indeed_1
1 Replies
LEARN ABOUT DEBIAN
sendemail
SendEmail(1) User Commands SendEmail(1)NAME
SendEmail - Lightweight, command line SMTP email client
SYNOPSIS
SendEmail -f ADDRESS [options]
OPTIONS -f ADDRESS
from (sender) email address
* At least one recipient required via -t, -cc, or -bcc * Message body required via -m, STDIN, or -o message-file=FILE
Common:
-t ADDRESS [ADDR ...]
to email address(es)
-u SUBJECT
message subject
-m MESSAGE
message body
-s SERVER[:PORT]
smtp mail relay, default is localhost:25
Optional:
-a FILE [FILE ...] file attachment(s)
-cc ADDRESS [ADDR ...] cc email address(es)
-bcc ADDRESS [ADDR ...]
bcc email address(es)
[32;1mParanormal:[m
-xu USERNAME
authentication user (for SMTP authentication)
-xp PASSWORD
authentication password (for SMTP authentication)
-l LOGFILE log to the specified file
-v verbosity, use multiple times for greater effect
-q be quiet (no stdout output)
-o NAME=VALUE
see extended help topic "misc" for details
Help:
--help TOPIC
The following extended help topics are available:
addressing
explain addressing and related options
message
explain message body input and related options
misc explain -xu, -xp, and others
networking
explain -s, etc
output explain logging and other output options
REPORTING BUGS
Report bugs to <http://bugs.debian.org/sendemail>
AUTHOR
sendemail was written by Brandon Zehm <caspian@dotconf.net> .
This manual page was written by Brandon Zehm and improved by Alejandro Garrido Mota <garridomota@gmail.com>, for the Debian project (and
may be used by others).
sendEmail September 2010 SendEmail(1)