[mythtv-users] Removing commercials
Michael Rice
mikerice1969 at gmail.com
Sat Nov 3 16:48:50 UTC 2007
On 11/3/07, Harry Devine <lifter89 at comcast.net> wrote:
> Brian Phillips wrote:
> > Harry Devine wrote:
> >
> >> I checked my mythbackend.log, and got the following:
> >> "sh: /usr/local/bin/removecommercials: /bin/sh^M: bad
> >> interpreter: No such file or directory"
> >>
> >> The file is there, and I double checked with Mythweb and it doesn't
> >> appear to be a typo or anything like that. I checked via SSH and the
> >> file is there and the permissions are 755, so I don't think that's
> >> it.. Any ideas?
> >>
> >
> > Have you opened removecommercials in vim yet? Make sure the first line
> > doesn't have a ^M tacked onto it from uploading from windows machines.
> >
> > Should look like this:
> > #!/bin/sh
> >
> > And nothing more.
> >
> > Brian
> >
> >
> >> Thanks,
> >> Harry
> >> _______________________________________________
> >> mythtv-users mailing list
> >> mythtv-users at mythtv.org
> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >>
> >
> >
> >
> >
> I just checked that and it looks just like you said. I didn't see any
> ^M in there anywhere. I can send it along if you want to look at it.
Open in vim again and do this to make sure it is in the right format:
:set ff=unix
:wq
You can actually run this script outside of myth until you get it
working. Just pass the parameters on the command line.
If you want to email it to me I can compare it to mine.
More information about the mythtv-users
mailing list