02-15-2019
I'm afraid that none of the scripts posted will do what you expect. On the other hand, it's not too well known what your targets are. Some comments:
Host B:
- is that script's path /scripts/checkDB.sh?
- it will output lines after lines "Trying ..." and "DB is up ..." if the pmon test fails. This is important for the planned evaluation on host A.
- try ps -ef | grep -q [p]mon in lieu of your lenghtier approach.
Host A:
- the local variable checkDB will be filled with text (at least "DB is up ... if not with lines after lines) but never evaluated.
- rval is set to 0 and not modified before the first zero test.
- what is the process test for server.sh for?
- why do you run startup.sh on host A if the DB should run on host B?
- same comment on ps ... | grep ... as for host B.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi there
I've got a strange problem with a webserver box (suse linux 7.2). My MTA is sendmail, and when I tried manually send a mail.
Sendmail -v "user@something" < /etc/hosts
The Server tried
"simon@localhost... Connecting to local..." but nothing happend and the system hold on.
This... (3 Replies)
Discussion started by: mrsaint
3 Replies
2. Shell Programming and Scripting
How can my unix shell script automatically connect to remote host?
Assume that there is a remote host called "rhost". When I connect to that host i give the command "telnet rhost".
It then asks me for my id and password. Once i give it connects there.
I want to automate these steps. I want... (8 Replies)
Discussion started by: digdarshan
8 Replies
3. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
4. Shell Programming and Scripting
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies
5. Red Hat
Hello all
I installed apache in CentOS 5.5 ,after searching the web for tips on configuration
I did the fallowing stuff to unable connecting the http server from outside.
In /etc/httpd/conf/httpd.conf I changed the Listen value to 0.0.0.8011
Then checked with then check with: netstat -anp and I... (2 Replies)
Discussion started by: umen
2 Replies
6. Shell Programming and Scripting
Hi everyone,
I have oracle 9i installed in Windows XP and i have ubuntu in VM WARE.
I would like to know how to connect to Oracle in windows xp from Linux through shel scripting...... (3 Replies)
Discussion started by: Zimbu
3 Replies
7. Shell Programming and Scripting
I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies
8. Shell Programming and Scripting
Hi
i am trying to open HTTP by curl command.
i am tryng to do that from command or script BASH.
also iptables is off
it doesnt work i am getting an error:
curl: (7) coudn't connect to host
the scipt is:
#! /bin/bash
curl http://www.cnn.com (1 Reply)
Discussion started by: zigizag
1 Replies
9. Shell Programming and Scripting
Hi All,
Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution.
Is there a utility/command using which we can connect to target host ?
Please suggest.
Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
10. Shell Programming and Scripting
hello
i try to made a report to conect all database to diferent OS
HP-UX/LINUX/SOLARIS/AIX
this is my example
i have 5 db
OS are HP-UX
ps -fea | grep pmon
root 1120 1 0 Nov 29 ? 5:14 ipmon -sD
oracle 10286 1 0 Nov 29 ? 27:19 ora_pmon_BD1
oracle 10431... (7 Replies)
Discussion started by: ceciaide
7 Replies
LEARN ABOUT ULTRIX
bootpd
bootpd(8) System Manager's Manual bootpd(8)
Name
bootpd - Server to help boot diskless clients
Syntax
/usr/etc/bootpd [ -d ] [ -i ]
Description
The server is for the Internet BOOTP protocol (a UDP-based protocol). This allows a diskless machine to find out its Internet address, the
address of a bootserver, and the name of a file to boot.
The server is either started from or from If is started from the -i flag must be supplied by The server reads its configuration file, when
it starts up. When a new request arrives, checks to see if the file has been modified, and if so, reads it again.
If started by waits until no new requests arrive for one minute. This limits the overhead of restarting the daemon without tying up a
process slot when nothing is happening. The following is an example of the format of the configuration file:
#
# /etc/bootptab: database for bootp server (/usr/etc/bootpd)
#
# Blank lines and lines beginning with '#' are ignored.
#
# home directory
/usr/local/bootfiles
# default bootfile
defaultboot
# end of first section
%%
#
# The remainder of this file contains one line per client
# interface with the information shown by the table headings
# below. The host name is also tried as a suffix for the
# bootfile when searching the home directory (that is,
# bootfile.host)
#
# host htype haddr iaddr bootfile
#
hostx 1 02:60:8c:06:35:05 99.44.0.65 ultrix
hosty 1 02:07:01:00:30:02 99.44.0.65 vms
hostz 1 02:60:8c:00:77:78 99.44.0.03 lps40
node1 1 02:60:8c:00:99:47 99.44.0.01 tops20
The first two lines specify the home (default) directory and the default bootfile, respectively. A line starting with two percent signs
(%%) separates these first lines from the host information table, which contains an entry for each bootable host.
You should start with a configuration file similar to this and edit the host entries to correspond to your local systems. The host field
does not have to be a formal host name; it is used for identification in the log file and also as a possible extension to the bootfile
name.
The is always 1 and corresponds to the hardware type assigned Ethernet by the Assigned Numbers RFC. The field can use a period (.), a
hyphen (-), or a colon (:) as separators. The entry is the file used if the client does not know the name of the file it wants to boot.
This is frequently the case when a diskless workstation is booted.
The server logs interesting events using
Options
-d Logs all requests and indicates what responses are made.
-i If is started from the -i flag must be supplied by
Files
Configuration file
See Also
inetd(8c), tftpd(8c)
bootpd(8)