Hello,
When i run a bash script on ubuntu i get this message..
#!/bin/bash cannot find file or directory...
Can anibody help me with this, because the file actually exists....
Is there any extra configuration to be made?
Hello,
When i run a bash script on ubuntu i get this message..
#!/bin/bash cannot find file or directory...
Can anibody help me with this, because the file actually exists....
Is there any extra configuration to be made?
Can you post a sample of this bash script between CODE tags, please?
First make sure that you used a unix editor to create the script and not something like Microsoft Notepad.
To visually check the format of the file, this "sed" command makes control codes visible. A normal unix text file will show just a dollar sign at the end of each line. A Microsoft format text file will show "\r$" at the end of each line - and it will not work as a shell script file.
sed -n l name_of_your file
Is there actually a bash in /bin? (Maybe it's in /usr/bin, or maybe /bin/bash is a link to someplace from where bash was deleted.)
This error message is usually because something is wrong with the Shebang line.
I don't have access to the script now, but i'll try to change it to #!/usr/bin/bash...
thanks for you're help, ill give feedback as soon as i can:b: