05-31-2010
Bash script multithread in group of 3
I Have an script like
./bang 1
./bang 2
./bang 3
./bang 4
./bang 5
./bang 6
./bang 7
./bang 8
./bang 9
./bang 10
./bang 11
./bang 12
and i wanna execute him in groups of 3 , i mean he execute bang 1 , bang 2 and bang 3 after it finish the next 3 commands it will be executed and so on , in groups of 3.
Regards
John Hardey
9 More Discussions You Might Find Interesting
1. Programming
I wrote a server which creates a thread for every client connection. I have to include timeout function that will kill the server thread if the client doesn't respond for specific time. That too using signal(SIGALRM). For this i am using alarm() function.
When the server thread detects signal it... (1 Reply)
Discussion started by: Nads
1 Replies
2. Programming
Hi
i m codding a programm,it can download any packet from ftp,I use libcurl library. But i want to use threads for downloading.(Multithreading).i cant get ftp file size from ftp and divide packet small pieces,like threads use.
Please share your experince with me ,thanks. (0 Replies)
Discussion started by: canerbulut
0 Replies
3. Programming
Hello,
I'm coding an application using pthreads.At some point the threads will read some read-only variables.Is it safe NOT to use mutexes, in order to make the program lighter since mutex operations are resource-demanding...
Thanks (1 Reply)
Discussion started by: jonas.gabriel
1 Replies
4. Programming
Hi all,i'm new on this forum, excuse me for my english.
I have wrote a server that accept connection from multiple client with the fork,but every client had to insert data in a linear list.
The problem is that every client insert data in an own copy of the linear list and this is caused by... (7 Replies)
Discussion started by: kemistry
7 Replies
5. Shell Programming and Scripting
hi,
i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies
6. Solaris
Dear Friends,
We have one T5240 server with 128vcpus in our lab.Performance of the server is very poor. Application uses only 2% of processor..I heard that single thread application performs slowly in coolthread.How can we find whether the application running on multithread or single thread? If... (7 Replies)
Discussion started by: nicktrix
7 Replies
7. Red Hat
I am currently have Centos 5.5 which consumes more CPU waiting for Kcrypt process. Later came to know that kcrypt is single threaded and hence consumes one CPU, results in performance degradation.
Does any one really knows/practically experimented multithread of Kcryptd process with any of... (1 Reply)
Discussion started by: ragavendraganes
1 Replies
8. Shell Programming and Scripting
In shell scripting, TestEmail is an existing group email. I am using the below command to send emails who are existed under TestEmail . Unable to receive the email. I have tried group ="id1 id2 " .Its working and i tried creating alias as well.
Can we do it without creating alias or group ="id1... (1 Reply)
Discussion started by: thomas9192
1 Replies
9. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT NETBSD
mailaddr
MAILADDR(7) BSD Miscellaneous Information Manual MAILADDR(7)
NAME
mailaddr -- mail addressing description
DESCRIPTION
Mail addresses are based on the Internet protocol listed at the end of this manual page. These addresses are in the general format
user@domain
where a domain is a hierarchical dot separated list of subdomains. For example, a valid address is:
eric@CS.Berkeley.EDU
Unlike some other (now obsolete) forms of addressing, domains do not imply any routing, or the existence of a particular host. Simply
because mail may be sent to ``user@somedomain.com'' does not imply that there is any actual host named ``somedomain.com'', and does not imply
a particular routing of the message. Routing is performed by Mail Transport Agents, such as postfix(1), based on policies set in the MTA's
configuration.
Abbreviation
Under certain circumstances it may not be necessary to type the entire domain name. In general, anything following the first dot may be
omitted if it is the same as the domain from which you are sending the message. For example, a user on ``calder.berkeley.edu'' could send to
``eric@CS'' without adding the ``berkeley.edu'' since it is the same on both sending and receiving hosts. Whether abbreviation is permitted
depends on how your site is configured.
Case Distinctions
Domain names (i.e., anything after the ``@'' sign) may be given in any mixture of upper and lower case. Most hosts accept any combination of
case in user names, although there are exceptions.
Postmaster
Every site is required to have a user or user alias designated ``postmaster'' to which problems with the mail system may be addressed, for
example:
postmaster@CS.Berkeley.EDU
Obsolete Formats
Certain old address formats, such as UUCP ``bang path'' addresses, explicitly routed internet addresses (so-called ``route-addrs'' and the
``percent hack'') and others have been used historically. All these addressing formats are now considered obsolete, and should no longer be
used.
To some extent, MTAs attempt to provide backward compatibility for these addressing forms, but in practice many of them no longer work.
Users should always use standard Internet style addresses.
SEE ALSO
mail(1)
D. H. Crocker, Standard for the Format of Arpa Internet Text Messages, RFC, 822, August 1982.
HISTORY
mailaddr appeared in 4.2BSD.
BUGS
The RFC 822 group syntax (``group:user1,user2,user3;'') is not supported except in the special case of ``group:;'' because of a conflict with
old berknet-style addresses, not that anyone cares about either berknet or group syntax style addresses any longer.
BSD
June 16, 1998 BSD