dopplesoldner
dopplesoldner

Reputation: 9479

Bash - :No such file or directory

I have a simple bash script as follows

#!/bin/bash
sleep 5000

When I try to execute it, I am getting a weird error

: No such file or directory

Note the semicolon :. All the usual stuff such as permissions are fine. Any ideas?

Upvotes: 0

Views: 1690

Answers (1)

Rahul R Dhobi
Rahul R Dhobi

Reputation: 5806

Please execute dos2unix yourscript to convert your file in linux formate

Upvotes: 1

Related Questions