【发布时间】:2015-05-17 21:43:13
【问题描述】:
我想强制输入 os.execute()。我在 FreeBSD 上使用 Lua,我想写一封电子邮件。
如果我这样写:
os.execute('mail -v -s \'Hello Im the Topic\' mail@hotmail.de')
os.execute('Hello this should be the message')
os.execute('.')
它不起作用,我收到一封没有任何内容的电子邮件,只是主题出现了低谷。另外,我在 freebsd 中遇到了一些错误('Hello this should be the message' is no command ...blabla)
所以我想在一个 os.execute 中强制一个(输入)。 我试过了:
os.execute('mail -v -s \'Hello Im the Topic\' mail@hotmail.de\nHello this should be a message\n.')
和
os.execute('mail -v -s \'Hello Im the Topic\' mail@hotmail.de\
Hello this should be a message\
.')
但两者都不起作用。
【问题讨论】:
标签: email lua send freebsd enter