Hi,
I now have a linux-based dedicated server. I am going to migrate my actinic store to the server. But the perl script can't run after uploading. After numerous times of uploading, deleting, refreshing, etc, etc, I found the reason may be:
The server doesn't convert \r\n to \n?
That means if I upload "helloworld.pl" from windows by ftp in ascii mode, it can't run (of course, i chmod 755 or 777). If i create helloworld.pl at server side directly, it can run.
I upload "helloworld.pl" to some other linux-based sites (share hosting), it can run. So I guess my dedicated server may set some parameters as default which prevent conversion of \r\n to \n, and finally prevent actinic's script from working.
Anyone had the same experience?
I now have a linux-based dedicated server. I am going to migrate my actinic store to the server. But the perl script can't run after uploading. After numerous times of uploading, deleting, refreshing, etc, etc, I found the reason may be:
The server doesn't convert \r\n to \n?
That means if I upload "helloworld.pl" from windows by ftp in ascii mode, it can't run (of course, i chmod 755 or 777). If i create helloworld.pl at server side directly, it can run.
I upload "helloworld.pl" to some other linux-based sites (share hosting), it can run. So I guess my dedicated server may set some parameters as default which prevent conversion of \r\n to \n, and finally prevent actinic's script from working.
Anyone had the same experience?
Comment