Sponsored Content
Homework and Emergencies Homework & Coursework Questions Parallel execution on multiple servers in UNIX Post 302971810 by DukeNuke2 on Tuesday 26th of April 2016 03:26:30 AM
Old 04-26-2016
If you post homework, please follow the rules!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parallel Execution

Hello, I wish to run parallel process forked from one script. Currently I doing is submit them in background. For example: --------------------------------------------------------------- #!/usr/bin/ksh process1 & process2 & process3 & ..... ..... #here I check for completion of... (4 Replies)
Discussion started by: RishiPahuja
4 Replies

2. Shell Programming and Scripting

Plink connections to multiple unix servers

Hi, I have a simple windows batch file which connects to a UNIX server and runs a shell script in my home directory on the server. It works perfectly, using plink + ssh keys in the background. What I plan to do is expand this batch file to connect to multiple servers and execute one script... (2 Replies)
Discussion started by: Moxy
2 Replies

3. High Performance Computing

Parallel Execution on Multiple System

Hi All, I am working on a project where I need to execute set of arguments (around 500) on a Simulator. If I execute this on one linux (RedHat 8.0) machine it will approximately takes 2~3 days. Since I am having more linux machines am thinking of executing these on different machines in... (7 Replies)
Discussion started by: 123an
7 Replies

4. HP-UX

Automatic execution of commands in multiple servers using single script.

Hi, I've to do a simple job many times whenever it has been asked, just i've to log in to all of fourtien HP servers and i've to execute ps -fu user > temp cat temp|sendmail "xyz@z.com" commands to send the statics of all of 14 servers over the mail to particular user id.. Though logging... (4 Replies)
Discussion started by: vickramshetty
4 Replies

5. Programming

Parallel Execution of Programs

Since there've been a few requests for a method to execute commands on multiple CPUs (logical or physical), with various levels of shell-, make-, or Perl-based solutions, ranging from well-done to well-meant, and mostly specific to a certain problem, I've started to write a C-based solution... (4 Replies)
Discussion started by: pludi
4 Replies

6. UNIX for Advanced & Expert Users

grep for a line in a file on multiple unix servers

Hi, I need to grep(look) for a line in filename named /tmp/Test on all 90 unix servers. Without logging to each servers manually and grep'ing for the line, is there a way to pull this info in output file thru' the ksh/sh/bash script. Can someone pl. help to create this script for me? Ex.... (3 Replies)
Discussion started by: Mike1234
3 Replies

7. Shell Programming and Scripting

need a script that does a simple task on multiple unix servers.

hi guys, i need a script that does a simple task on multiple aix servers. if possible with both telnet and ssh. the simple task i wanna do is connect to a server and run "ifconfig -a" and get the output. nextweek i need to do similar jobs on like 50 servers... :( can anybody help me with making... (2 Replies)
Discussion started by: curtis911
2 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. UNIX for Beginners Questions & Answers

Parallel execution of Oracle procedure in UNIX

i have say x number of procedure to run, ie i have one procedure which accepts variable and i need that to run in parallel and capture the error code if in case if it fails through the unix. sqlplus <EOF> exec test_t (abc,124); </EOF> sqlplus <EOF> exec test_t (abc,125); </EOF> sqlplus <EOF>... (2 Replies)
Discussion started by: ATWC
2 Replies

10. Shell Programming and Scripting

Parallel execution of Oracle PROC in UNIX

Hi, Trying to run the Oracle Proc in parallel, but not working.. below code runs each call of the procedure and its coming out of the loop before its completion and printing the last statement! not waiting for the sqlplus to complete. for name in `cat abc.txt` do (sqlplus -s ... (3 Replies)
Discussion started by: ATWC
3 Replies
Config::Model::Warper(3pm)				User Contributed Perl Documentation				Config::Model::Warper(3pm)

NAME
Config::Model::Warper - Warp tree properties VERSION
version 2.021 SYNOPSIS
# internal class DESCRIPTION
Depending on the value of a warp master (In fact a Config::Model::Value object), this class will change the properties of a node (Config::Model::WarpedNode), a hash (Config::Model::HashId), a list (Config::Model::ListId), a checklist (Config::Model::CheckList) or another value. Warper and warped Warping an object means that the properties of the object will be changed depending on the value of another object. The changed object is referred as the warped object. The other object that holds the important value is referred as the warp master or the warper object. You can also set up several warp master for one warped object. This means that the properties of the warped object will be changed according to a combination of values of the warp masters. Warp arguments Warp arguments are passed in a hash ref whose keys are "follow" and and "rules": Warp follow argument Grab string leading to the "Config::Model::Value" warp master. E.g.: follow => '! tree_macro' In case of several warp master, "follow" will be set to an array ref of several grab string: follow => [ '! macro1', '- macro2' ] You can also use named parameters: follow => { m1 => '! macro1', m2 => '- macro2' } Warp rules argument String, hash ref or array ref that specify the warped object property changes. These rules specifies the actual property changes for the warped object depending on the value(s) of the warp master(s). E.g. for a simple case (rules is a hash ref) : follow => '! macro1' , rules => { A => { <effect for macro1 == A> }, B => { <effect for macro1 == B> } } In case of similar effects, you can use named parameters and a boolean expression to specify the effect. The first match will be applied. In this case, rules is a list ref: follow => { m => '! macro1' } , rules => [ '$m eq "A"' => { <effect for macro1 == A> }, '$m eq "B" or $m eq"C "' => { <effect for macro1 == B|C > } ] In case of several warp masters, "follow" must use named parameters, and rules must use boolean expression: follow => { m1 => '! macro1', m2 => '- macro2' } , rules => [ '$m1 eq "A" && $m2 eq "C"' => { <effect for A C> }, '$m1 eq "A" && $m2 eq "D"' => { <effect for A D> }, '$m1 eq "B" && $m2 eq "C"' => { <effect for B C> }, '$m1 eq "B" && $m2 eq "D"' => { <effect for B D> }, ] Of course some combinations of warp master values can have the same effect: follow => { m1 => '! macro1', m2 => '- macro2' } , rules => [ '$m1 eq "A" && $m2 eq "C"' => { <effect X> }, '$m1 eq "A" && $m2 eq "D"' => { <effect Y> }, '$m1 eq "B" && $m2 eq "C"' => { <effect Y> }, '$m1 eq "B" && $m2 eq "D"' => { <effect Y> }, ] In this case, you can use different boolean expression to save typing: follow => { m1 => '! macro1', m2 => '- macro2' } , rules => [ '$m1 eq "A" && $m2 eq "C"' => { <effect X> }, '$m1 eq "A" && $m2 eq "D"' => { <effect Y> }, '$m1 eq "B" && ( $m2 eq "C" or $m2 eq "D") ' => { <effect Y> }, ] Note that the boolean expression will be sanitized and used in a Perl eval, so you can use most Perl syntax and regular expressions. Function (like &foo) will be called like "$self->foo" before evaluation of the boolean expression. Methods warp_error() This method returns a string describing: o The location(s) of the warp master o The current value(s) of the warp master(s) o The other values accepted by the warp master that can be tried (if the warp master is an enumerated type) How does this work ? Registration o When a warped object is created, the constructor will register to the warp masters. The warp master are found by using the special string passed to the "follow" parameter. As explained in grab method, the string provides the location of the warp master in the configuration tree using a symbolic form. o Then the warped object retrieve the value(s) of the warp master(s) o Then the warped object warps itself using the above value(s). Depending on these value(s), the properties of the warped object will be modified. Master update o When a warp master value is updated, the warp master will call all its warped object and pass them the new master value. o Then each warped object will modify its properties according to the new warp master value. AUTHOR
Dominique Dumont, (ddumont at cpan dot org) SEE ALSO
Config::Model::AnyThing, Config::Model::HashId, Config::Model::ListId, Config::Model::WarpedNode, Config::Model::Value perl v5.14.2 2012-11-09 Config::Model::Warper(3pm)
All times are GMT -4. The time now is 01:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy