# New bie ::: how to use fork?

**URL:** <https://www.ruby-forum.com/t/new-bie-how-to-use-fork/90623>\
**Category:** Ruby\
**Created:** [March 30, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/new-bie-how-to-use-fork/90623 "2007-03-30T13:37:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai438](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@sai438](https://www.ruby-forum.com/u/sai438)\
**Post date:** [March 30, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/new-bie-how-to-use-fork/90623/1 "2007-03-30T13:37:55Z")

</div>

I want to use fork call, but when Iam exiting in the fork call, the  
script is exiting but running in background. why is this happening???

---

<div class="post-metadata">

**Author:** ![sai438](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@sai438](https://www.ruby-forum.com/u/sai438)\
**Post date:** [March 30, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/new-bie-how-to-use-fork/90623/2 "2007-03-30T15:01:29Z")

</div>

On 30.03.2007 13:37, sairam MP wrote:

> I want to use fork call, but when Iam exiting in the fork call, the  
> script is exiting but running in background. why is this happening???

Can you post the code you are using?

robert
