我运行了以下代码,当我到达第二个 heredoc 时,我被卡在了 at 提示符中(见下图)。如何安全地退出(不破坏任何东西)?
代码:
bash /dev/fd/40 40<< 'PMA'
cat << PMA_UNINSTALL | at 'now + 2 minutes'
phpdismod mcrypt mbstring
apt-get purge phpmyadmin -y
service apache2 restart
sed -i 's/Include \/etc\/phpmyadmin\/apache.conf/ /g' /etc/apache2/apache2.conf
PMA_UNINSTALL
PMA
促销:
答案1
要退出at
提示,请CtrlD按新行:
$ at now
warning: commands will be executed using /bin/sh
at> echo "hi"
at> <EOT>
job 6 at Sun Jan 1 20:20:00 2017
是通过压制<EOT>
而印刷的。at
CtrlD
答案2
CTRL+ Z(或者CTRL+ 附近的某个键Z),将我带回了 Bash。