LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 908|回复: 1

奇怪问题,望高手解答!

[复制链接]
发表于 2004-5-9 02:51:36 | 显示全部楼层 |阅读模式
上传xxx.cgi文件至服务器,用ee编辑此文件,第一行是:
#!/usr/bin/perl^M

在本地(XP系统),用记事本打开:
#!/usr/bin/perl

每一行的结尾后面都多了一个 ^M

路径正常,为什么会出现这样的情况呢?现在除了env.cgi探针能运行外其他程序都是500错误,郁闷!!
发表于 2004-5-9 03:05:49 | 显示全部楼层
/usr/ports/converters/dosunix# cat pkg-descr
The suite of utilities known as DosUnix provide a selection of features
allowing manipulation of text files in a mixed DOS/Windows and Unix
environment.

The three utilities are:

   - dosunix, which creates a copy of a DOS text file in Unix text format;
   - unixdos, which creates a copy of a Unix text file in DOS text format;
   - chktxt, which inspects a given text file to determine whether it is in
     DOS text format or Unix text format.

WWW: http://dosunix.sourceforge.net/
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表