When I am logged into my linux system and use vi to create a script file, I can then run the script without any problems.
./scriptname
However, if write a script using my preferred editor on my windows machine, then upload the script file into the same directory and then give it the exact same permissions and try to run it, the system gives me this error.
bash: ./scriptname: No such file or directory
It's like the system does not recognize that the file exists. I can even open the uploaded file in vi, change it, and resave, but I can never get it to execute.
It has the proper permissions
-rwxrwxr-x
but unless I originally create the file on the system, I can not get it to run.
?????? I'm sure this is some basic *nix thing that I am not familiar with.