Bash bad interpreter no such file or directory


















So, I typed the whole thing and save it. It works. Thank you cowls. Show 14 more comments. My script was a. What sorcery is this??!!! Show 20 more comments. Mario Campa Mario Campa 3, 1 1 gold badge 22 22 silver badges 25 25 bronze badges. Perfect fix, thank you — Devon. My favourite answer.

Nothing else worked this easily. It worked. But can I know the reason which required to perform this action. Thanks a lot. Show 1 more comment. This is caused by editing file in windows and importing and executing in unix. Convert file FILE and overwrite output to it. Posted: June 27, by sobbayiadmin. If your answer is yes then you have reached the right place. This error is more common than you think and is quite harmless but nevertheless, it is annoying.

This issue is caused when you create scripts in Windows environments and then port them over to run on a Unix environment. Bash scripts on the other hand are quite sensitive to line-endings.

This is not just limited to the script itself. Active 1 year, 9 months ago. Viewed 4k times. I'm getting this error while executing this script -bash:. Improve this question. AdminBee Please edit your question to identify what type of system you are using — roaima. Still waiting for answers to 1 and 2 though — roaima. It's a ubuntu system — user What don't you get?

It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I just shifted from Windows to Linux Ubuntu Sorry for reviving old topic but I had the same issue and managed to fix it, not sure what exactly helped but did all the things listed below. First of all install Gedit through the command:.

After this, type in terminal, while being in the proper folder:. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?



0コメント

  • 1000 / 1000