【发布时间】:2011-11-15 12:31:48
【问题描述】:
我在 Perl 中有一个如下所示的系统调用:
system('/path/to/utility >> /redirect/to/log file');
但这要等待utility 完成。我只想触发它并让 Perl 脚本完成,而不管 utility 调用是否完成。
我该怎么做?
我尝试将行更改为
system('/path/to/utility >> /redirect/to/log file &');
但此语法仍在 Windows 上等待调用完成。我需要让它在 Linux 和 Windows 上运行。
【问题讨论】:
标签: perl cross-platform platform-independent