On 14:30 28 Jun 2003, sean darcy <seandarcy@xxxxxxxxxxx> wrote: | I run spambayes. Since I've installed bash-2.05b-25 the scripts won't run | implicitly. | | [root@xxxxxxx bin]# ls -l /usr/bin/pop3proxy.py | -rwxr-xr-x 1 root root 28967 Jun 28 14:22 | /usr/bin/pop3proxy.py | | [root@xxxxxxx bin]# /usr/bin/pop3proxy.py | : bad interpreter: No such file or directory | | But it works from python: | | [root@xxxxxxx bin]# python /usr/bin/pop3proxy.py | SpamBayes POP3 Proxy Beta1, version 0.1 (May 2003), | using SpamBayes POP3 Proxy Web Interface Alpha2, version 0.02 | ................................... | | And, it should work from bash -- shouldn't it??? I am more included to suspect the python script. I notice it has a fairly current mod time. Did you perchance fetch it from a Windows system? I am guessing that it has a windows-style line ending. So the first #! line isn't: #!/usr/bin/python^J but actually: #!/usr/bin/python^M^J Thus the kernel's looking for an executable whose name ends in a carraige return (^M). Naturally it doesn't find it. You can fix this with the dos2unix command. Cheers, -- Cameron Simpson <cs@xxxxxxxxxx> DoD#743 http://www.cskk.ezoshosting.com/cs/ If you can keep your head while all those about you are losing theirs, perhaps you don't understand the situation. - Paul Wilson <Paul_Wilson.DBS@xxxxxxxxxxxxxxxxxxxxxxx>