Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All I am new to Linux shell script development, and i am new to this forum. My question is regarding the Shell script development. The scenario description is as ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3

    How to call a shell script from another shell script


    Hi All

    I am new to Linux shell script development, and i am new to this forum.

    My question is regarding the Shell script development.

    The scenario description is as follows.

    I had a script with start method calls, in start method i call other shell script.

    How should i write the shell script in such way that .the child shell script should be running even the parent shell scripts dies/kill/stop.

    Please help me out in this type of scenario-2, since i am running out of time with this issue.

    Regards
    Rakesh

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Did you tried starting child function as background process (&) ?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Hi Lakshmipathi

    I tried using the symblo &, but there is no use, when the parent process is killed/stopping/end simulteneously child process is also getting stopped.

    My concerns . i dont child process to stop. it has some conditions where it should get executed even parent process has stopped.

    Regards
    Rakesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •