#!/usr/bin/ruby message = print "test message youtube.be/123 \n #hashtag #hastag2 #hastag3" email = `echo #{message} | ssmtp -vvv #{line}@groups.facebook.com` File.open("/home/awer/coding/ruby/fb-sharing/id.txt", "r") do |f| f.each_line do |line| sleep 5 puts email end end