[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: copying processes
On Sat, 8 Jul 2000, Suraj.co.in wrote:
> hi everyone,
>
> Though this isn't a problem, I want to know what happenned?
>
> I wrote a script that lists n number of fortunes matching the
> string.
>
> suraj $ search_fortune 10 elephant &
> [1] search_fortune 10 elephant &
>
> suraj $ ps -A
> blah
> blah
> blah
> 1034 search_fortune
> blah
> blah
> 1092 search_fortune
>
> suraj $
> My script doesn't call itself anywhere. What's causing this copying of
> processes?
>
> -Suraj
Normally bash (or any other shell) forks off to execute each
command. So for every command in your shell script you have a different
pid.
- George Samuel
---
Visit our home page at: www.chennailug.org
Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx' with 'unsubscribe'
in either the subject or the body to unsubscribe from this list.