V
V
Vladislav2016-03-30 08:37:26
PHP
Vladislav, 2016-03-30 08:37:26

Why does ubuntu give an error that the file or directory does not exist, although the file exists?

I created a file in /usr/local/bin, called it super, added the following code there:

#!/usr/bin/env php
<?php
fwrite(STDOUT, 'just test');
die(0);

I try to run the super command, I get an error that there is no file or directory. All rights to the file are, how so?
UPDATE:
Created a file in ubuntu via echo and everything works. I create via ftp and nothing works. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2016-03-30
@MrBikus

It's all about CRLF line terminators

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question