README.md in frontkick-0.4.5 vs README.md in frontkick-0.4.6
- old
+ new
@@ -31,11 +31,11 @@
result = Frontkick.exec(["echo", "*"]) #=> echo the asterisk character
### Dry Run Option
- result = Frontkick.exec(["echo", "*"], :dry_run => 1)
+ result = Frontkick.exec(["echo", "*"], :dry_run => true)
puts result.stdout #=> echo \*
### Timeout Option
Frontkick.exec("sleep 2 && ls /hoge", :timeout => 1) # raises Frontkick::Timeout
@@ -51,9 +51,16 @@
Frontkick.exec("sleep 2 && ls /hoge", :exclusive => "/tmp/frontkick.lock") # raises Fontkick::Locked if locked
If you prefer to be blocked:
Frontkick.exec("sleep 2 && ls /hoge", :exclusive => "/tmp/frontkick.lock", :exclusive_blocking => true)
+
+### Hint: Redirect stderr to stdout
+
+Frontkick itself does not aid anything, but you can do as
+
+ result = Frontkick.exec(["ls /something_not_found 2>&1"])
+ puts result.stdout #=> ls: /something_not_found: No such file or directory
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)