# Run a rake file from command line and view what is happening

**URL:** <https://www.ruby-forum.com/t/run-a-rake-file-from-command-line-and-view-what-is-happening/163372>\
**Category:** Rails\
**Created:** [March 19, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/run-a-rake-file-from-command-line-and-view-what-is-happening/163372 "2009-03-19T17:32:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [March 19, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/run-a-rake-file-from-command-line-and-view-what-is-happening/163372/1 "2009-03-19T17:32:19Z")

</div>

I have the following code that I want to run but I can’t seem to figure  
out how to view the variable’s content

someobj = AnotherObj.find(:all, :conditions =\> {:col\_10 =\> nil, :col\_12  
=\> nil, :col\_5 =\> “12345”})  
puts someobj.inspect

Now I run those two lines of code in the terminal but nothing happens.  
When I say nothing happens I mean there is no ouput. I am expecting to  
see a break down of the someobj object

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [March 19, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/run-a-rake-file-from-command-line-and-view-what-is-happening/163372/2 "2009-03-19T19:18:32Z")

</div>

Hi,

It doesn’t look like you’re running that in script/console. If not, at  
your  
command prompt, run

script/console

Then try the find in there.

More on script/console and other command-line Rails utilities:

> **[The Rails Command Line — Ruby on Rails Guides](https://guides.rubyonrails.org/command_line.html)**
>
> The Rails Command LineAfter reading this guide, you will know: How to create a Rails application. How to generate models, controllers, database migrations, and unit tests. How to start a development server. How to experiment with objects through an...

Regards,  
Craig

On Thu, Mar 19, 2009 at 12:32 PM, Chris G. \<  
removed\_email\_address@domain.invalid\> wrote:

> ## see a break down of the someobj object
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Craig D.  
Mutually Human Software

> **[Homepage | Mutually Human](https://www.mutuallyhuman.com/)**
>
> Technology Made for Humans by humans Data Analytics Data Analytics Data has become a critical part of business for most organizations. We work with you to ensure you have confidence in your data, can properly access it, and present it in a way that...
