# Shut down Ruby interpreter as last command of a script?

**URL:** <https://www.ruby-forum.com/t/shut-down-ruby-interpreter-as-last-command-of-a-script/110880>\
**Category:** Ruby\
**Created:** [July 31, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/shut-down-ruby-interpreter-as-last-command-of-a-script/110880 "2007-07-31T18:46:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunburned\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@Sunburned\_S](https://www.ruby-forum.com/u/Sunburned_S)\
**Post date:** [July 31, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/shut-down-ruby-interpreter-as-last-command-of-a-script/110880/1 "2007-07-31T18:46:13Z")

</div>

Is there a command I can issue in the last command of a script to shut  
down the Ruby interpreter? (I want to open the ruby interpreter to  
execute the script from another program, but I want the script to  
close the interpreter that I launch.)

Thanks,

The SketchUp Artist

---

<div class="post-metadata">

**Author:** ![Sunburned\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@Sunburned\_S](https://www.ruby-forum.com/u/Sunburned_S)\
**Post date:** [July 31, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/shut-down-ruby-interpreter-as-last-command-of-a-script/110880/2 "2007-07-31T19:55:23Z")

</div>

On 7/31/07, Sunburned S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a command I can issue in the last command of a script to shut  
> down the Ruby interpreter? (I want to open the ruby interpreter to  
> execute the script from another program, but I want the script to  
> close the interpreter that I launch.)

exit

---

<div class="post-metadata">

**Author:** ![Sunburned\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@Sunburned\_S](https://www.ruby-forum.com/u/Sunburned_S)\
**Post date:** [July 31, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/shut-down-ruby-interpreter-as-last-command-of-a-script/110880/3 "2007-07-31T20:05:24Z")

</div>

On Jul 31, 10:54 am, “Tim P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 7/31/07, Sunburned S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Is there a command I can issue in the last command of a script to shut  
> > down the Ruby interpreter? (I want to open the ruby interpreter to  
> > execute the script from another program, but I want the script to  
> > close the interpreter that I launch.)
> 
> exit

Thanks Tim.

That was way too easy.

The SketchUp Artist

---

<div class="post-metadata">

**Author:** ![Sunburned\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@Sunburned\_S](https://www.ruby-forum.com/u/Sunburned_S)\
**Post date:** [July 31, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/shut-down-ruby-interpreter-as-last-command-of-a-script/110880/4 "2007-07-31T20:07:24Z")

</div>

On Jul 31, 10:54 am, “Tim P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 7/31/07, Sunburned S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Is there a command I can issue in the last command of a script to shut  
> > down the Ruby interpreter? (I want to open the ruby interpreter to  
> > execute the script from another program, but I want the script to  
> > close the interpreter that I launch.)
> 
> exit

Thanks Tim.

That was way to easy.

The SketchUp Artist
