rush, the ruby shell

0 views
Skip to first unread message

Robert Citek

unread,
Nov 18, 2009, 12:49:28 PM11/18/09
to stl...@googlegroups.com
Hello all,

Was wondering if anyone here has played with rush, the ruby shell:

http://rush.heroku.com/

Regards,
- Robert

Amos King

unread,
Nov 18, 2009, 1:18:24 PM11/18/09
to stl...@googlegroups.com
I played with it. It is really nice for working with two connections,
like scp. I'm not sure if I would use it for day to day stuff.

Amos
> --
>
> You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
> To post to this group, send email to stl...@googlegroups.com.
> To unsubscribe from this group, send email to stlruby+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/stlruby?hl=.
>
>
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com

Robert Citek

unread,
Nov 18, 2009, 1:45:34 PM11/18/09
to stl...@googlegroups.com
Was this with ruby 1.8.* or 1.9? - Robert

Amos King

unread,
Nov 18, 2009, 1:50:53 PM11/18/09
to stl...@googlegroups.com
1.8
> --
>
> You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
> To post to this group, send email to stl...@googlegroups.com.
> To unsubscribe from this group, send email to stlruby+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/stlruby?hl=en.

Robert Citek

unread,
Nov 18, 2009, 2:24:44 PM11/18/09
to stl...@googlegroups.com
Excellent, as I'm running 1.8.6 on Ubuntu 8.04:

$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

Will give rush a whirl.

Regards,
- Robert

On Wed, Nov 18, 2009 at 1:50 PM, Amos King <amos....@gmail.com> wrote:
> 1.8

Robert Citek

unread,
Nov 18, 2009, 10:25:52 PM11/18/09
to stl...@googlegroups.com
I was hoping to use it to maybe have a more sane interface to some
system information. For example, I would like to know how many block
are being used on an ext3 filesystem. Does rush have a better
solution than this?

$ sudo tune2fs -l /dev/sda5 |
ruby -lane '
bc=$_.match(/(\d+)$/)[0].to_i if /^Block count:/ ;
fb=$_.match(/(\d+)$/)[0].to_i if /^Free blocks:/ ;
END {puts bc-fb}
'

maybe as an attribute of a filesystem object?

Regards,
- Robert
Reply all
Reply to author
Forward
0 new messages