blob: 78592a7004bbca95f81a3ad74876d19eb45d9e34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
shell.rb is a Ruby library to run commands and control jobs like a
shell. Pipes and redirections work just as expected:
sh = Shell.cd("/foo")
sh.cat("bar") | sh.tee("baz") > "baa"
# or
sh.transact do
cat("bar") | tee("baz") > "baa"
end
Author: Keiju Ishitsuka <keiju@ishitsuka.com>
WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=Shell
|