07-27-2007
connect to server using ssh
hi,
i have script that connects to a unix server. however, i want to add condition that if it cannot connects in 10 attemps, it will send email to me.
while [ condition ] -a ${COUNT} -lt 10]
./connect to server.
if status <> 0 then
email to me.
fi
Thanks a lot.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to run the below command in perl but when the perl script is executed it prompts a error message saying " ssh: <username>: Name or service not known ". Not able to understand this as this command runs perfectly on the server prompt.
` ssh <username>@pus4026dev df -k >>... (2 Replies)
Discussion started by: be2sp1
2 Replies
2. Shell Programming and Scripting
Hello
i have to connect to 11 servers to check the process size on every server.
how to that with shell scripting using ssh
regards (7 Replies)
Discussion started by: mogabr
7 Replies
3. Shell Programming and Scripting
i want to connect to a remote server through ssh.
i have to also provide password within that script.
after connecting to the remote server i want to do some operations like grep,cd etc
can u pls help me to wite a script.
Thanks (1 Reply)
Discussion started by: millan
1 Replies
4. Shell Programming and Scripting
I have a task requiring that USER_A run a script, which connects to HOST_B as USER_B and does not ask for a password.
If I am logged in on HOST_A as USER_B, I can connect to HOST_B without a password, no problem. However, if I try running ssh with the command line "ssh USER_B@HOST_B" while... (3 Replies)
Discussion started by: Totengraber
3 Replies
5. Red Hat
hi all
i am unable to connect remote server using ssh but i am able to ping the server
ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies
6. Linux
How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies
7. Red Hat
I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server?
I hope my question is clear that what is the... (9 Replies)
Discussion started by: RHCE
9 Replies
8. Shell Programming and Scripting
I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd"
i am trying in this manner "
ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies
9. Linux
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (0 Replies)
Discussion started by: manjusharma128
0 Replies
10. Shell Programming and Scripting
Hi
i am new to unix shell scripting i have the below requirement
connect to server B and then connect to mysql in the server B and query for a particular record and capture that value
but when i perform this i am facing an error
can u guys help me on this:confused::confused:
... (2 Replies)
Discussion started by: Hamdul
2 Replies
LEARN ABOUT DEBIAN
pwrkap_cli
pwrkap_cli(1) User Manuals pwrkap_cli(1)
NAME
pwrkap_cli - Command line monitor and control program for pwrkap
SYNOPSIS
pwrkap_cli host:port
DESCRIPTION
pwrkap_cli is a command-line program that connects to a pwrkap server and downloads the hardware configuration and power configuration
domain data from the server. Power use, energy use, and system status are dumped to the screen when the server sends a status update, and
raw commands can be sent to the server.
OPTIONS
host:port
A hostname (or IP address) and a port to which this client should connect.
COMMAND FORMAT
The command format looks like this:
domain_name [ help | dump | cap new_cap ]
COMMANDS
domain_name
The name of the power configuration domain that the user wants to control.
help Displays a short help screen.
dump Displays the current hardware configuration and state of the server.
cap new_cap
Sets a new power cap and reconfigures the hardware to meet the cap.
AUTHOR
Darrick J. Wong <djwong at us dot ibm dot com>
SEE ALSO
pwrkap_gtk(1), pwrkap_aggregate(8), pwrkap_main(8)
Linux January 2009 pwrkap_cli(1)