这种情况可能是 test.pl 被其他进程以读写模式打开(可以 lsof | grep test.pl 看看),还有可能就是 fayland
说的,这文件是从win上拷到linux的,最好做一下 dos2unix 的转换

2011/8/18 Fayland Lam <[email protected]>

>  try convert your file from DOS format to UNIX format. maybe it helps. but
> I'm not sure about it.
>
> Thanks
>
>
> On 2011/8/18 10:20, Gary.jsz wrote:
>
> 运行perl程序的时候,偶尔有报 :-bash: ./test.pl: /usr/bin/perl: bad interpreter: Text
> file busy
>
> 但是再运行一次就不报了。  过段时间运行又报。
>
>
>
>
>
> ----
> Gary.jsz
>
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>
>
>
> --
> Fayland Lam // http://www.fayland.org/
>
>  --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

回复