Sponsored Content
Full Discussion: Execute scripts in Parallel
Top Forums Shell Programming and Scripting Execute scripts in Parallel Post 302577061 by itkamaraj on Monday 28th of November 2011 06:01:00 AM
Old 11-28-2011
yes...

for a test

just execute the below commands


Code:
 
echo "I am success" && echo "2nd success" && echo "3rd success"

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute commands parallel in a for loop ?

Hi, please can someone point me in the right direction with a shell scripting problem. I want to execute a command in a for loop and the command should be started not one-by-one meaning the for loop is waiting for the exit code , it should be started in parallel. I have a plain text file... (3 Replies)
Discussion started by: networkfre@k
3 Replies

2. Shell Programming and Scripting

Need to execute 2 scripts, wait, execute 2 more wait, till end of file

:cool: I need to execute a shell script to do the following: cat a file run two back ground processes using the first two values from the file wait till those background processes finish run two more background processes using the next two values from the file wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies

3. Shell Programming and Scripting

Running scripts in parallel

Hi, Iam having the scripts as follows. i jus want to run those in parallel. main aim is to minimise the time for overall execution of the script. now out.txt is having 1 lac records. script1(split.sh) split -1000 out.txt splitout ls -A splitout* > filelist.txt cat filelist.txt... (6 Replies)
Discussion started by: nivas
6 Replies

4. Shell Programming and Scripting

Executing scripts in Parallel

Hi All, I have 3 shell scripts, Script1,Script2 and Script3. Now I want to run Script1 and Script2 in parallel and Script3 should depend on successful completion of both Script1 and Script2. Could you please suggest an approach of acheiving this... Thanks in advance (2 Replies)
Discussion started by: itsme_maverick
2 Replies

5. Shell Programming and Scripting

need to have a cronjob which will execute certain scripts every hr

Hi My question needs two answers how to write scripts to update a table in oracle db based on the result of the number of record counts for example i need to execute the following script every hour awk '{sum++;}END{for(i in sum) {print i, sum}}' filename here everyhour the... (3 Replies)
Discussion started by: aemunathan
3 Replies

6. Shell Programming and Scripting

Find and execute shell scripts in multiple sub directories in parallel

I have one parent directory and within that parent directory there are several other sub-directories and within those sub-directories there are several other "large number" of sub-directories. All the sub directories have a shell script in them with a common file name execute_command.sh I want... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies

7. Shell Programming and Scripting

[Solved] Running scripts in parallel that issue prompt

Hi all - I am totally stuck here :wall I have been asked to write a shell script that does a few little things and then reads from a config file and kicks off an instance of another script, say scriptB.ksh for each line in the config file. These should all be run in parallel. This is all fine but... (2 Replies)
Discussion started by: sjmolloy
2 Replies

8. Shell Programming and Scripting

[Solved] Running scripts in parallel

i have script A and script B, both scripts have to run in parallel, my requirement is script A create table temp1, post creating it will run fr 4 hrs , script B has to start 0nly after creation of table temp1 ( which is done by script A) , again script B will run for 5 hrs if i run sequencially... (7 Replies)
Discussion started by: only4satish
7 Replies

9. AIX

Need ./ to execute scripts

Hi, I am really sorry for this question but still i am confused. I have shell script called sample.sh I can execute only with the combination of ./sample.sh Is ./ really necessary ? Is it something related with $HOME or $PATH variable. Why and How can i resolve this case ? ... (2 Replies)
Discussion started by: Nandy
2 Replies

10. Shell Programming and Scripting

Parallel bash scripts

Need some help to replace bash script with parallel to speed up job on multiple files (400files.list is the file contains the absolute path to those 400 files). The bash script is to run the same program over the files repetitively. My bash_script.sh is: for sample in `cat 400files.list`; do... (3 Replies)
Discussion started by: yifangt
3 Replies
cmsnmpd(1m)															       cmsnmpd(1m)

NAME
cmsnmpd - SNMP subAgent that services the High Availability cluster MIB objects SYNOPSIS
cmsnmpd DESCRIPTION
cmsnmpd is a subAgent that together with the SNMP Master Agent (snmpdm), form the SNMP Agent for a particular system. The cmsnmpd provides the instrumentation for the High Availability cluster MIB objects. The cmsnmpd is a separate process, yet registers with the SNMP Master Agent, and the two share a procedural interface. Traps The cmsnmpd sends asynchronous event notifications called "traps". By default, SNMP traps are not sent to any destination. To configure the agent to send traps to one or more specific destinations, add the trap destinations to /etc/SnmpAgent.d/snmpd.conf. The SNMP Master Agent and the cmsnmpd collaborate to send High Availability cluster-related traps and information. For example, a trap is sent when the cluster configuration changes, or when a Highly Available package has failed. A complete list of all the cluster-related traps can be found on systems with OpenView installed. On an OpenView management station, the trap descriptions can be found in /etc/opt/OV/share/conf/$LANG/trapd.conf. Supported MIB Objects The Management Information Base (MIB) is a conceptual database of values on the agent system. The cmsnmpd implements the hp-cluster and hp-sgcluster MIB objects. Included in these MIBs are descriptions of the cluster configuration, as well as the current status of each cluster component. A complete list of all the High Availability MIB objects can be found on systems with OpenView installed. On an Open- View management station, the MIB object descriptors can be found in /etc/opt/OV/share/conf/snmpmib. cmsnmpd Startup Startup is controlled by the setting of the AUTOSTART_CMSNMPD variable in the /etc/rc.config.d/cmsnmpagt file. If AUTOSTART_CMSNMPD is set to 1, the cmsnmpd is started automatically each time the system boots. The variable should be set to 1 if you will be using ClusterView to monitor your Highly Available clusters through OpenView. If AUTOSTART_CMSNMPD is set to 0, the cmsnmpd is not started automatically when the system boots. If configured for autostart, the cmsnmpd should startup automatically, after the SNMP Master Agent starts, each time the system reboots, or any time the system transitions from run level 1 to run level 2. When the system enters run level 2, the system will execute /sbin/init.d/SnmpMaster which will start the Master Agent. Similarly, /sbin/init.d/cmsnmpagt will start the cmsnmpd immediately after the Master Agent is started. Prior to executing these startup scripts the system will examine all scripts in /etc/rc.config.d for environment variables which could potentially influence the startup of the Master Agent and the cmsnmpd. See the specific startup script or configuration file for details on supported environment variables. The user should never modify scripts in /sbin/init.d. Instead, the startup behavior should be con- trolled by adjusting values in the configuration script /etc/rc.config.d/cmsnmpd. There are two ways to start the SNMP Master Agent and the cmsnmpd manually. The first way is to execute snmpdm and then start cmsnmpd by invoking the cmsnmpd executable (/usr/lbin/cmsnmpd). The second and simplest way to start the SNMP Agent manually is to execute the snmpd startup script which will invoke the Master Agent and all subAgents who have been installed and designed to operate in this paradigm. The snmpd startup script is layered upon the V.4 startup paradigm and so makes use of the component startup scripts in /sbin/init.d and configuration scripts in /etc/rc.config.d. When snmpd is invoked it passes all its command line arguments to snmpdm and then executes each script found in /sbin/SnmpAgtStart.d. DEPENDENCIES
None. AUTHOR
cmsnmpd was developed by Hewlett-Packard. FILES
/usr/lbin/cmsnmpd /sbin/init.d/cmsnmpagt /etc/rc.config.d/cmsnmpagt /var/adm/SGsnmpsuba.log SEE ALSO
snmpd(1m), snmpd.conf(4). Requires Optional Serviceguard Software cmsnmpd(1m)
All times are GMT -4. The time now is 02:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy