Sponsored Content
Top Forums UNIX for Advanced & Expert Users Execute All Commands in A contrl File Post 302270171 by ukatru on Friday 19th of December 2008 10:45:11 PM
Old 12-19-2008
Execute All Commands in A contrl File

Hi ,

I have a situation i need to write a while loop until the end of control file.In the control file i have a 5 lines which contains commands.how can i execute all with out waiting for the first one to complete.

Ex ControlFile:

ScripitName Test
ScriptName Test1
ScriptName Test2

while read -r inline
do
$inline # inline = ScriptName Test
done < ControlFile

I need to complete the whole loop with out waiting until the execution of the previous command.

Appreciate your help.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can Xargs execute multiple commands of evry input file

Hello , I am trying to print the footer of evry file in the given directory with xargs command like follows ls -1 | xargs -I {} gzcat {} | tail -1 now problem with this is only last file foooter is getting printed as " | tail -1 " is getting executed for the last file. I know this can... (4 Replies)
Discussion started by: nilesrex
4 Replies

2. Shell Programming and Scripting

Pls Help-Script to execute Commands and write to excel file

Execute some commands in script and store result in excel sheet Kindly help me........... (1 Reply)
Discussion started by: Computer_baby
1 Replies

3. UNIX for Dummies Questions & Answers

How to check for contrl-M characters

Hii When i am using the following command for checking the ctrl-m characters am getting "Substitution pattern match failed" error. Actually i jus want to check and not to substitute. Please suggest me as whats wrong in the below command. 1,$s/Ctrl+vCtrl+m//g Thanks (9 Replies)
Discussion started by: ladtony
9 Replies

4. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

5. Shell Programming and Scripting

How to execute commands read from another file?

Please help with this simple example. I can not figure out how to do it. A file named “job” contains only this one line:var=5I need a script to read the job file and execute it as a command. This is my attempt (it does not work):#!/bin/sh exec < job echo "var = $var"output should read “var = 5”... (5 Replies)
Discussion started by: wolfv
5 Replies

6. Shell Programming and Scripting

Execute commands to specific folder from input file

Hi, I have one text file input.txt, which has folders path as follows: /home/user/automate/abc /home/user/automate/abc/xyz /home/user/automate/test /home/user/automate/test2 /home/user/automate/test2/abc/Main In those folders i have .svn folder. 1) First i want to remove .svn like rm... (5 Replies)
Discussion started by: dragon.1431
5 Replies

7. UNIX for Dummies Questions & Answers

how to use expect - send to execute list of commands inside a file

:)hello people i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands. i can read the telephone numbers and insert them into the command with no... (0 Replies)
Discussion started by: auma78
0 Replies

8. Shell Programming and Scripting

Scan a file in realtime and execute certain commands on encountering 5 consecutive identical lines

Mysql log has something like below: I need a bash shell script that will do the following: 1) The script will scan the mysql.log file constantly in real time (something like tail -F mysql.log) 2) If it encounters 5 consecutive identical lines then it would invoke some commands (say... (4 Replies)
Discussion started by: proactiveaditya
4 Replies

9. Shell Programming and Scripting

Shell: How to execute commands from another file?

I made a configuration file for my shell script in that all the values that the shell scipt needs, are defined, but I don't know how to let the shell script use those defined variables. Thank you for your help :) (3 Replies)
Discussion started by: Alkali
3 Replies

10. Shell Programming and Scripting

How to execute a batch file containing ftp commands??

hi, is there a way i can execute a batch file containing ftp commands like we execute sftp batch file. sftp -b batchfile user@server > output how to create a batch file for ftp executing command and how to run the batch file from a shell script? (2 Replies)
Discussion started by: Little
2 Replies
Basic Traversal Helpers(3)				     Hardware Locality (hwloc)					Basic Traversal Helpers(3)

NAME
Basic Traversal Helpers - Functions static inline hwloc_obj_t hwloc_get_root_obj (hwloc_topology_t topology) static inline hwloc_obj_t hwloc_get_ancestor_obj_by_depth (hwloc_topology_t topology , unsigned depth, hwloc_obj_t obj) static inline hwloc_obj_t hwloc_get_ancestor_obj_by_type (hwloc_topology_t topology , hwloc_obj_type_t type, hwloc_obj_t obj) static inline hwloc_obj_t hwloc_get_next_obj_by_depth (hwloc_topology_t topology, unsigned depth, hwloc_obj_t prev) static inline hwloc_obj_t hwloc_get_next_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, hwloc_obj_t prev) static inline hwloc_obj_t hwloc_get_pu_obj_by_os_index (hwloc_topology_t topology, unsigned os_index) static inline hwloc_obj_t hwloc_get_next_child (hwloc_topology_t topology , hwloc_obj_t parent, hwloc_obj_t prev) static inline hwloc_obj_t hwloc_get_common_ancestor_obj (hwloc_topology_t topology , hwloc_obj_t obj1, hwloc_obj_t obj2) static inline int hwloc_obj_is_in_subtree (hwloc_topology_t topology , hwloc_obj_t obj, hwloc_obj_t subtree_root) Detailed Description Be sure to see the figure in termsanddefs that shows a complete topology tree, including depths, child/sibling/cousin relationships, and an example of an asymmetric topology where one socket has fewer caches than its peers. Function Documentation static inline hwloc_obj_t hwloc_get_ancestor_obj_by_depth (hwloc_topology_t topology, unsigneddepth, hwloc_obj_tobj) [static] Returns the ancestor object of obj at depth depth. static inline hwloc_obj_t hwloc_get_ancestor_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_ttype, hwloc_obj_tobj) [static] Returns the ancestor object of obj with type type. static inline hwloc_obj_t hwloc_get_common_ancestor_obj (hwloc_topology_t topology, hwloc_obj_tobj1, hwloc_obj_tobj2) [static] Returns the common parent object to objects lvl1 and lvl2. static inline hwloc_obj_t hwloc_get_next_child (hwloc_topology_t topology, hwloc_obj_tparent, hwloc_obj_tprev) [static] Return the next child. If prev is NULL, return the first child. static inline hwloc_obj_t hwloc_get_next_obj_by_depth (hwloc_topology_ttopology, unsigneddepth, hwloc_obj_tprev) [static] Returns the next object at depth depth. If prev is NULL, return the first object at depth depth. static inline hwloc_obj_t hwloc_get_next_obj_by_type (hwloc_topology_ttopology, hwloc_obj_type_ttype, hwloc_obj_tprev) [static] Returns the next object of type type. If prev is NULL, return the first object at type type. If there are multiple or no depth for given type, return NULL and let the caller fallback to hwloc_get_next_obj_by_depth(). static inline hwloc_obj_t hwloc_get_pu_obj_by_os_index (hwloc_topology_ttopology, unsignedos_index) [static] Returns the object of type HWLOC_OBJ_PU with os_index. Note: The os_index field of object should most of the times only be used for pretty-printing purpose. Type HWLOC_OBJ_PU is the only case where os_index could actually be useful, when manually binding to processors. However, using CPU sets to hide this complexity should often be preferred. static inline hwloc_obj_t hwloc_get_root_obj (hwloc_topology_ttopology) [static] Returns the top-object of the topology-tree. Its type is typically HWLOC_OBJ_MACHINE but it could be different for complex topologies. This function replaces the old deprecated hwloc_get_system_obj(). static inline int hwloc_obj_is_in_subtree (hwloc_topology_t topology, hwloc_obj_tobj, hwloc_obj_tsubtree_root) [static] Returns true if obj is inside the subtree beginning with subtree_root. Note: This function assumes that both obj and subtree_root have a cpuset. Author Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. Version 1.7 Sun Apr 7 2013 Basic Traversal Helpers(3)
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy