runing bash script

  • hi guys,
    I have a small script that show my box IP, it runs smoothly but in the end it doesn't close the window.
    It is Executed in Shell Window, and having the

    Code
    exit 0

    or not is the same thing.
    Is there a trick to close the window when the script is finish?


    Thanks

  • Which window is this?


    A shell script on the box (or any other remote server) cannot control a window of a PC program (e.g. putty).