Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reenable piping.

  • Loading branch information...
commit a1ce494cff3b7dc276c2a4a36341ac67c9e495cb 1 parent 9832b43
Corey Ehmke authored
View
4 README.md
@@ -13,11 +13,11 @@ To start synack:
To send a message to your local Notification Center:
- synack -m "Watson, come here, I need you."
+ synack "Watson, come here, I need you."
You can send messages to remote machines by specifying a host and port in the client:
- synack -h my_remote_machine -m "I'm here, what did you want?"
+ synack -h my_remote_machine -p 1013 "I'm here, what did you want?"
You can even use UNIX pipes to send messages (first line of input only, for now):
View
4 README.rdoc
@@ -12,11 +12,11 @@ To start synack:
To send a message to your local Notification Center:
- synack -m "Watson, come here, I need you."
+ synack "Watson, come here, I need you."
You can send messages to remote machines by specifying a host and port in the client:
- synack -h my_remote_machine -p 11113 -m "I'm here, what did you want?"
+ synack -h my_remote_machine -p 11113 "I'm here, what did you want?"
You can even use UNIX pipes to send messages (first line of input only, for now):
View
2  bin/synack
@@ -28,7 +28,7 @@ else
port: @port
)
- _input = ARGV[0]
+ _input = ARGV[0] ? ARGV[0] : STDIN.read
client.say _input
rescue DRb::DRbConnError => e
puts "Some kind of connection error occurred: #{e}"
View
2  lib/synack/server.rb
@@ -31,7 +31,7 @@ def self.stop
# Instance methods =============================================================================
def sanitize(message)
- message && message.gsub(/[^0-9A-z\.\-\' ]/, '_')
+ message && message.gsub(/[^0-9A-z\.\-\'\, ]/, '_')
end
def say(message)
Please sign in to comment.
Something went wrong with that request. Please try again.