10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I need to prepare a script.
Description:
Currently i am in server "x(ubuntu os)", here i need to develop a script to ssh to another server "y(ubuntu os)", i have password less authentication to "y". i have done the below
#!/bin/bash
#ssh to the server "y" and confirming i am... (2 Replies)
Discussion started by: kumar85shiv
2 Replies
2. 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
3. Shell Programming and Scripting
Hi,
Actually i'm trying to write a script which needs to ssh into a server and run a command on the server, after entering a valid login.
But after ssh the script will no longer run on the SSHed server :(
so is there any way to do so ??? (1 Reply)
Discussion started by: nagios
1 Replies
4. Programming
Hi All,
I have designed a web tool in perl cgi in UNIX Solaris 10 platform.
According to my cgi script (in server A) it should execute a script (in server B) using ssh key authentication, but it is not.
And when I am trying to execute the command without cgi script, the script in server B... (4 Replies)
Discussion started by: ankit_talwar
4 Replies
5. Shell Programming and Scripting
HI Unix Gurus,
I an stuck in an interesting issue, where I am trying to execute a script on remote server after ssh.
The script on remote server is interactive,. Whenever it is called it hangs where it expects input from terminal and I have to terminate it.
I have searched through fourm... (12 Replies)
Discussion started by: Jeevanm
12 Replies
6. Shell Programming and Scripting
Hi,
I have something like below code piece in ksh
while read machine
do
ssh $user@$machine < steps.ksh $RPI
done < $machine
here, after it gets logged in to server it is not considering the $PRI as argument for steps.ksh script
please suggest the fix. (1 Reply)
Discussion started by: rbalaj16
1 Replies
7. Shell Programming and Scripting
Hi,
I have 2 servers and i installed ssh2 on both boxes .. so they they can communicate with each other with our password auth ..
now i want to write a scrip on box 1 for running commands and getting out put from the second box
can some one help me out
Thank you in advance (1 Reply)
Discussion started by: anwesh
1 Replies
8. Shell Programming and Scripting
I'm working on a script (mostly for practice) to simplify a task I have to do every now and then. I have a cluster with 6 servers on it, each server has a directory with a set of files called *.pid and *.mpid. Each file contains the pid of a process that may or may not be running on that server.... (3 Replies)
Discussion started by: DeCoTwc
3 Replies
9. 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
10. Shell Programming and Scripting
Hi guys, I have a script which looks a little like this;
grep $id /usr/local/production/service/distributor/clients/*/out/events.xml | awk -F/ '{print $8}'
I want to be able to run this on my dev box, so need to add something into the script which will SSH onto the live server, collect the... (2 Replies)
Discussion started by: JayC89
2 Replies