05-28-2009
Thanks for this answer !
However, pardon me but i'm still in doubt in applying this wait command to my portion of script :
Here is my loop :
$2 is a file containing destination path list. It oculd be as big as 30 or more different paths. So the blue loop is creating as many dd processes as number of different destination paths. Those dd processes have to be completed before going to the read of following block.
for i in `seq 1 $NB_PASS`
do
#copie d'une tranche vers ramdrive. "Read" from source to ramdrive
dd if=$1 of=/mnt/ramdrive/buf.dat bs=$BS count=$COUNT skip=$POINTEUR_BLOC status=noxfer
#copie de cette tranche vers les destinations. "Write" from ramdrive to multi destinations
for destination in $(cat $2)
do
dd if=/mnt/ramdrive/buf.dat of=$destination/stillwriting.tmp bs=$BS seek=$POINTEUR_BLOC oflag=append status=noxfer &
done
POINTEUR_BLOC=`expr $POINTEUR_BLOC + $COUNT`
done
I would like that the blue loop wait for all it's child dd process to finish before go back to red loop.
Last edited by Gnaag; 05-28-2009 at 10:00 AM..
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hello everybody
i want to do synchronisation to access a shared memory bu i don't know too much how
well i know that i should use semaphore
have you any example of synchronisation of a shared memory by use of semaphore because i haven't find any
thanks (0 Replies)
Discussion started by: student00
0 Replies
2. Shell Programming and Scripting
Hello,
By now in linux 2.4, I have a sh script wich start 2 modules as follow :
/sbin/insmod module1.o
/sbin/insmod module2.o
I added an application in user space named "user_app" which communicate with module1 with a /proc.
I now tape the commands myself during code execution on a... (1 Reply)
Discussion started by: crip01
1 Replies
3. Post Here to Contact Site Administrators and Moderators
hi,
i am unable to post new thread. pls revert back what i need to do. i already posted 3 threads....
I am getting message like " Message is too short" even though my message is more than 100 characters. (1 Reply)
Discussion started by: spc432
1 Replies
4. UNIX for Dummies Questions & Answers
i want to do file synchronisation...its a client-server model..have to do system call 'ls -l' in both client and server ..the server has to keeep track of client files and have to keep a back up of client files..and tracking must be done based on time stamp..
suppose if client contains a file... (2 Replies)
Discussion started by: shilpam,edappal
2 Replies
5. UNIX for Dummies Questions & Answers
hello everyone. I want to implement a thread pool, with 10 threads most. Inside main,I call a function (lets say it foo) wich creates (if it is needed) or uses an existing thread from the pool and sends it to do a job.My problem is that I dont know how to pass the argument from the main to the... (2 Replies)
Discussion started by: garag11
2 Replies
6. Shell Programming and Scripting
hello,
i need to modified my synch/back scripts....
i want that this script only syncro folders in destinationfolder.
f.e. when in destination are two folders
1) admin
2) users
but in SOURCE are three:
1) admin
2) users
3) antivirus
the script should only increnmential sync the... (0 Replies)
Discussion started by: onkeldave
0 Replies
7. Shell Programming and Scripting
If the element found in array2 doesn't exist in array1 i want i to be deleted. This code doesn't work correctly. What's wrong? Is there a simpler solution?
for (( i=0; i<=${#array2}; i++ ))
do
for (( v=0; v<=${#array1}; v++ ))
do
if }" = "{$array1}" ]
then
count=1
break... (3 Replies)
Discussion started by: iums1
3 Replies
8. Programming
hi,
i have to do a program with following condition. please help me to write the program.
conditions-i have to create a thread with handle called first and it should call the member function(may do anything lik print anything) of a class called thread1 and for example let take that this first... (5 Replies)
Discussion started by: senthil.march
5 Replies
LEARN ABOUT DEBIAN
array-info
array-info(1) array-info(1)
NAME
array-info - check the status of a HP (Compaq) SmartArray controller
SYNOPSIS
array-info -d array_device_path [-a|-l|-A|-c|-s|-L|-h]
DESCRIPTION
Array-info is a command line tool to retrieve informations and logical drives status from several RAID controllers (currently HP Compaq IDA
and CISS and MD). It displays informations about the firmware version, Rom revision, number of physical and logical drives on the con-
troller, aswell as the fault tolerance, size, number of physical disks and status for each logical drive.
OPTIONS
--device | -d
Path to array device, e.g. /dev/ida/c0d0 or /dev/cciss/c0d1
--all-drives | -a
Show informations about all drives
--logical drive | -l
Show informations about selected logical drive
--show-ctrl | -c
Show informations about controller
--show-logical | -L
Show informations about logical drives
--show-physical | -p
Show physical device informations
--show-status | -s
Show status of logical drives
--show-all | -A
Show all informations
--version | -V
Show version
-h Show help about options
COPYRIGHT
This manual page was written by Raphael Pinson <<raphink@ubuntu.com>>. Permission is granted to copy, distribute and/or modify this docu-
ment under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
2006-12-15 array-info(1)