Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个在 Apache 上运行的 Java Web 应用程序,它在某些用例中调用 Perl 脚本。我希望能够将 Perl 脚本的打印语句(默认情况下打印到 STDOUT)重定向到 Apache 日志。
做这个的最好方式是什么?
在 Perl 脚本中使用它是有效的:
print STDERR "my comment";