Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hostname = ARGV[0] || "10.32.8.234"
- port = ARGV[1] || 4002
- require './daemon.rb'
- msg = [
- Time.now.to_i,
- "Twitter",
- "Fortune",
- `fortune`,
- nil]
- # File.open('lena.jpg', 'rb').read
- # ]
- 1.times{
- success = MPPDaemon::Client.send(hostname, port, msg.dup)
- puts "Succeeded? #{success}"
- }
Add Comment
Please, Sign In to add comment