当你退出lftp时,它会继续在后台运行,class MyDeviseMailer < Devise::Mailer
helper :application # gives access to all helpers defined within `application_helper`.
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
default template_path: 'devise/mailer' # to make sure that your mailer uses the devise views
def confirmation_instructions(record, token, opts={})
attachments.inline['logo.jpg'] = File.read("app/assets/images/logo.jpg")
super
end
end
命令用于再次将lftp附加到该进程,如果你需要,但我想知道是否有办法附加lftp运行另一台你有ssh访问权限的机器的lftp进程?一个例子就是很棒。
答案 0 :(得分:0)
提供ssh访问权限时很容易。只是做
ssh user@host "lftp -c attach"