答案1
从man 1 ssh
-t Force pseudo-tty allocation. This can be used to execute arbitrary
screen-based programs on a remote machine, which can be very useful,
e.g. when implementing menu services. Multiple -t options force tty
allocation, even if ssh has no local tty.
现在mutt
有一个 tty 来显示它的菜单。 (例如,如果通过脚本远程-tt
连接,则可以使用。)mutt
cron
ssh -t [email protected] mutt