我希望每晚自动更新所有已安装的 CPAN 模块,因此我将以下命令放在了crontab
:
@daily cpan -i $(cpanp -o | perl -lane 'print $F[3]')
但是,每当运行此程序时,我都会收到以下错误消息:
Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS and
LINES environment variables didn't work. The resize program didn't work. at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Term/ReadKey.pm
line 362.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Term/ReadLine
/Perl.pm line 63.
我该怎么做才能让它工作?