I have a shell script named "env_setup.sh" which takes in 2 arguments ,"server name" and property_file"
example of my shell invocation is this
$>env_setup.sh server1 2.1-release.properties.
this script connects to the server and executes serveral tasks including calling other scripts. This script takes 30 minutes to run start to finish. As part of automation, the scrpt will be invoked by other script and server names passed in dynamically . I want this script to run the against servers simultaneously , not sequentially( because for e.g 30 mins x 6 servers - 3 hrs).
is there a way I can ask pass in arguments to a wrapper script so that env_setup.sh is run simultaneously for several servers
env_setup.sh server1 2.1-release.properties
env_setup.sh server2 2.1-release.properties
env_setup.sh server3 2.1-release.properties