10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Im running the below command
sshpass -p mypassword ssh -t user1@server2 /bin/bash -c 'echo "mypassword" | sudo -S -l; echo "$?#`grep -iE "user66|dbuser|tomcat|splunk|stash|jira|user2|docadmin" /etc/passwd`"; exit'
Below is the error I get: Output:
I run this command across a... (1 Reply)
Discussion started by: mohtashims
2. Shell Programming and Scripting
A webservice running on multiple servers. A patch has been deployed to them and it got successful only in some set of servers. The change is in format of "logontime" from "dd.mm.yyyy hh24:mi:ss" to "dd/mm/yyyy hh24:mi:ss". A script has already generated the output from all servers with request and... (2 Replies)
Discussion started by: Chandan_Bose
3. Shell Programming and Scripting
I have written a small script :
for i in `cat /tmp/list` ( list contains remove servers )
ssh -t $i << EOF
echo "Enter the dir >"
path=`ll -ld /home/user/"$dir"`
if ; then
echo "Dir exists "
echo "no such... (9 Replies)
Discussion started by: kpatel786
4. Shell Programming and Scripting
Wishing to all.
I am very new joined in an organization as a unix system administrator.
I need a help in preparing a script for a report.
i have a file contains all of the linux/ubuntu servers line by line around 140 servers.
:wq (3 Replies)
Discussion started by: kumaraswamy
5. Shell Programming and Scripting
I am baffled on this. Solaris Irix system.:confused:
I have 4 servers all connected to one another, :b: I need to write a script line that would login on to server 1-3 ($HOST) start a script in the back ground and log off while the back ground script runs over a length of time.:eek:
... (10 Replies)
Discussion started by: weddy
So I have a scriptlet called solaris_command:
for i in \
server1 server2 server3
ssh $i $1
I then use that as a command in multiple scripts to allow for data gathering for all virtual hosts in the environment thusly:
solaris_command "cat... (3 Replies)
Discussion started by: os2mac
7. Shell Programming and Scripting
I am trying to write a script to run a command on multiple linux based servers and get the o/p. I am using ssh to login. It is a celerra box and EMC NAS product.
I am able login but i am not able to run nas command nas_pool -size -all the NAS server. I am getting the following error. ... (2 Replies)
Discussion started by: jpkumar10
8. Shell Programming and Scripting
I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in parallel for all the hosts instead of 1 at a time? Also, I'm remotely running the script on the... (3 Replies)
Discussion started by: mrskittles99
9. UNIX for Advanced & Expert Users
I have 20 Servers (They are Windows 2003) that I remote every day using names or IP address and type in my username & Password then copy folders manually to my local computer.
I'm wondering if i can just run script(s) from my local computer to do this job without using FTP(because of security... (5 Replies)
Discussion started by: idiazza
10. Shell Programming and Scripting
I am running a shell script from a central server to multiple remote servers using the following code:
# Linux/UNIX box with ssh key based login
# SSH User name
# create new file
# connect... (2 Replies)
Discussion started by: mystition