-1

I have a script that is not working. I get this message when executing it:

This is the file:

#!/bin/sh

# import tv tipps (a.o.)
/usr/local/bin/php_cli /html/typo3/typo3/cli_dispatch.phpsh extbase import:runalljobs

and this is what I get when I run it:

-bash: ./import_tvtips.sh: /bin/sh^M: bad interpreter: Datei oder Verzeichnis nicht gefunden

I get this "^M" weird character that I can't see in the editor. What can I do?

Enrique Moreno Tent
  • 22,811
  • 31
  • 96
  • 179

1 Answers1

1

It seems you have ^M extra character(s) in your script import_tvtips.sh. Remove them and your script should execute.

Stephane Rouberol
  • 4,212
  • 17
  • 18