Sponsored Content
Operating Systems HP-UX Automatic execution of commands in multiple servers using single script. Post 302371535 by jim mcnamara on Sunday 15th of November 2009 01:23:13 PM
Old 11-15-2009
Code:
for node in host1 host2 host3
do
  ssh {$node} 'ps -fu user | sendmail xyz@z.com'
done

start with that - it assumes you have setup ssh keys for each node. And you are not doing this as root.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

automatic execution of shell script

Dear All, I want to execute a shell script,whlie system is booting. I was try using /etc/rc.d/rc.local file but its not working. (1 Reply)
Discussion started by: rajamohan
1 Replies

2. UNIX for Advanced & Expert Users

multiple commands execution

Hi i have 3 sql scripts that need to be executed simultaneously, and independent of one another, how do i do that in Unix AIX 5.3 (1 Reply)
Discussion started by: yschd
1 Replies

3. Shell Programming and Scripting

automatic execution of script after every 10 mins

Hi All, I have a requirement that a script need to be executed automatically every 10 mins. how is this possible. lots of logs are created as a part of process and the logs need to be moved into a directory. how is this possible ? (1 Reply)
Discussion started by: suresh_kb211
1 Replies

4. SuSE

Regarding accessing multiple servers using single public ip address

Hello, Currently we are having different linux servers (for example: let's assume audio server, video server and text server) to handle requests from outside users. Suppose the outside users in different LAN (Local Area Network), other than the servers. For example user is in 20 series LAN and... (5 Replies)
Discussion started by: navneet_2009
5 Replies

5. Shell Programming and Scripting

Running multiple unix commands in a single script

Hi, I would like to write a script with include more than 6 unix commands. my script like below: echo " script started" ls -ld bdf | grep "rama" tail -10 log.txt ... .. ... now, i want to run above unix commands one by one. example: first the ls -ld command will be... (3 Replies)
Discussion started by: koti_rama
3 Replies

6. Programming

Would you please give me some idea about single client and multiple servers

Hi, I have a program which needs to connect multiple servers at the same time. The program has to collect data from each of servers and then make a decision regarding to the data received. There are several requirements. 1. Server (s) may shutdown anytime without any ack (e.g.power... (1 Reply)
Discussion started by: sehang
1 Replies

7. Shell Programming and Scripting

Require single command to start script in multiple servers

I have 9 servers, on each server a script with common name is available. I send a token file to all server from 1 particular server. so when a daemon job checks that token file is available then it triggers the script.. I want to know is there any command or script which I will run/execute on... (16 Replies)
Discussion started by: mirwasim
16 Replies

8. Solaris

Remote execution of a local script on multiple servers

So I have a scriptlet called solaris_command: for i in \ server1 server2 server3 do echo $i ssh $i $1 echo "" done 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
3 Replies

9. Homework & Coursework Questions

Parallel execution on multiple servers in UNIX

I have a requirement (in a shell script) to connect to several servers at once and execute a series of commands. I am aware that ssh can be used for sequential execution. But since most of the commands that I need to execute take a long time, I have to go for the parallel option. Is there... (2 Replies)
Discussion started by: sneha1887
2 Replies

10. Shell Programming and Scripting

How to run simple single command on multiple Linux servers?

Hi All, How can i run a single command on multiple servers with or without giving credentials. I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server. I tried below code... (9 Replies)
Discussion started by: darling
9 Replies
dnetcat(1)							   User Commands							dnetcat(1)

NAME
dnetcat - opens a DECnet connection SYNOPSIS
dnetcat {-h|--help} dnetcat [-v] [-z] node[::|[::] ]object dnetcat [-v] [-f] -l object DESCRIPTION
dnetcat is a netcat(1) like tool that opens a DECnet connection and copies all data between the standard input/output to/from the socket. OPTIONS
-v Be verbose. Prints useful (debug) messages. -z Zero IO mode. In this mode a connection is dropped directly after it is opened. This can be used to scan if the remote side listens on the given address and object. -l Listen mode. In this mode dnetcat accepts connections on the given object. -f Fork on new connection. This let netcat accept multiple connections in listen mode. This is ignored if -l is not given. --help, -h Prints a small help. EXAMPLES
This program can be used as 'ProxyCommand' for ssh(1). You may use it via command line like this: ssh -o 'ProxyCommand dnetcat %h ssh' [...] mynode or you may use it in your ~/.ssh/config like this: Host *:: ProxyCommand dnetcat %h ssh This will enable you to connect to any DECnet node by adding "::" at the end of the node name like this: ssh mynode:: For more information on ssh(1) see it's manpage. SEE ALSO
ssh(1), netcat(1). AUTHORS
This program is written by Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>. dntools September 2008 dnetcat(1)
All times are GMT -4. The time now is 04:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy