2.) /usr/bin/perl^M: bad interpreter: No such file or directory

Issue/Error:
epoch@Debian-60-squeeze-64-LAMP:~/epochserver$ ./epoch.sh
./epoch.sh: ./writer.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
epoch@Debian-60-squeeze-64-LAMP:~/epochserver$

This is caused by having extra invisble characters in the file (which come from Windows).
Have a look at this issue: : No such file or directoryr.pl for an explanation

How to fix this:
Use the converting tools from the dos2unix package which convert files from Linux to Windows format (unix2dos file) or vise versa (dos2unix file)
epoch@Debian-60-squeeze-64-LAMP:~/epochserver$ dos2unix writer.pl
dos2unix: converting file writer.pl to UNIX format …
epoch@Debian-60-squeeze-64-LAMP:~/epochserver$


Category: Common Issues

← 2.) /usr/bin/perl^M: bad interpreter: No such file or directory