/usr/bin/perl^M: bad interpreter: No such file or directory
this is caused by the cartage return on the ending of first line. To fix this, you can
1. add -w to the end of the line. make it #!/usr/bin/perl -w
or
2. $ perl -pi.bak -e ’s/ 15//’ *.pl
SharePoint, Drupal and Other Random Stuffs
Archive for the ‘Linux’ Category.
this is caused by the cartage return on the ending of first line. To fix this, you can
1. add -w to the end of the line. make it #!/usr/bin/perl -w
or
2. $ perl -pi.bak -e ’s/ 15//’ *.pl
Recent two weeks my website’s email system has a lot of emails returned. And the error messages are exactly the same.
The error message is
“551 User not local; please try <forward-path>”
All emails returned have same characters: The recipients’ email servers are located in China. sina, yahoo.cn, 163, and sohu, no exceptions.
I did some googling and found out this has something to do with China’s Great Fire Wall. 10.1 is a special day in China. The fire wall might have been tightened.