On Wed, Oct 21, 2020 at 10:18:44AM +0800, Luan Shengde wrote:
add parameters for answerback-email -e,--email email_address: add email address -s,--ssh-pubkey pub_key_file: add a ssh login pub_key -f,--raw-email email_file: add email address[, pub_key] via email file
Usage: ruby answerback-email.rb -e email_address [-s pub_key_file] ruby answerback-email.rb -f email_file
Why not put this file into the sbin dir?
-mail_file = ARGV[0] -mail_content = read_mail_content(mail_file) -send_account(mail_content) +send_account(apply_info)
If the apply_info is global var no need pass it as a param. Thanks, Xueliang
-- 2.23.0