Find the answer to your Linux question:
Results 1 to 2 of 2
I was writing a bash script which attached to another script. The issue I'm having is, when I use the exit command written in the script, it takes me back ...
  1. #1
    Just Joined! EchoOnFedora's Avatar
    Join Date
    Sep 2010
    Location
    US
    Posts
    24

    script issue

    I was writing a bash script which attached to another script. The issue I'm having is, when I use the exit command written in the script, it takes me back to the first script. How do I disable this?

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Use the exec command to launch your child script. That will cause the process that is running the parent to run the child instead. Since there is only one process, when it exits, it's gone.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

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