![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| facing problem in starting a process in background using shell script. | dtomar | Shell Programming and Scripting | 8 | 04-17-2008 05:11 AM |
| How to include RETURN KEY with Background process "&" in Shell Script | racbern | Shell Programming and Scripting | 1 | 03-11-2008 03:30 AM |
| How to check process/cpu utilisation thru unix shell scripting | manas_ranjan | UNIX for Dummies Questions & Answers | 0 | 07-25-2007 01:00 PM |
| cause a process to be in background | avnerht | Shell Programming and Scripting | 0 | 06-22-2004 06:29 AM |
| capture the process id when starting a background process | jleavitt | Shell Programming and Scripting | 10 | 04-04-2002 05:04 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Background Process Shell Scripting
I have a following program:
echofunc() { filename=$1 echo "reading $filename" while read line do echo $line; sleep 6; done < $filename } split -5 new.dat ls x* > input.dat while read file do echofun $file & done < input.dat ==================================================================================================== ================================ Here new.dat is a file which has many 300 line of records in it. So after split 60 files will be formed. So in this program how do I limit only 10 instances of echofun() to run at a time ? Last edited by dhieraj; 04-12-2008 at 09:08 AM. |
| Forum Sponsor | ||
|
|