Mijn pianomuziek: http://www.youtube.com/user/doelman
fork ?
http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html
http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html
The fork() system call will spawn a new child process which is an identical process to the parent except that has a new system process ID. The process is copied in memory from the parent and a new process structure is assigned by the kernel. The return value of the function is which discriminates the two threads of execution. A zero is returned by the fork function in the child's process.
The environment, resource limits, umask, controlling terminal, current working directory, root directory, signal masks and other process resources are also duplicated from the parent in the forked child process.
[ Voor 98% gewijzigd door Viper® op 01-06-2007 10:35 ]
Alleen als je dat zo script, dat is niet een fundamentele beperking in bash ofzo, er is gewoon syntax om dat tegelijk te doen hoordoelman schreef op vrijdag 01 juni 2007 @ 10:34:
Ik dacht zelf in eerste instantie aan een lusje in een Bash script mja, dan wordt het volgende commando pas uitgevoerd als het huidige klaar is.
Ok, bedankt. Ik wist niet dat daar syntax voor is blaataaps.
Mijn pianomuziek: http://www.youtube.com/user/doelman
Check het magische teken "&". Daarmee start je het proces in de achtergrond terwijl het huidige proces (bv bash) verder gaat.
More than meets the eye
There is no I in TEAM... but there is ME
system specs
zo iets : stel dat je het 50x wil doen:
code:
1
2
3
4
| for i in `seq 1 50`;
do
abc &
done |
Pagina: 1