Ask coding questions

← Back to all posts
unable to run, main file "main.sh" not found
FalconTFG (0)

I assume this is a simple error, how do I fix this?

Comments
hotnewtop
Coder100 (18187)

it IS a simple problem!

Step 1:
create a main.sh file

Step 2.
put this inside it:

python main.py
GalaxyWolfX (77)

@Coder100 Or you could do what I said. That works, too.

Coder100 (18187)

no, that won't work
main.sh is not a python file as you should know @GalaxyWolfX

GalaxyWolfX (77)

@Coder100 Did you not see the language?

GalaxyWolfX (77)

@Coder100 With all due respect, I should expect you to take notice of the language, Bash.

Coder100 (18187)

yes, so that's why you can't just copy and paste python code and treat it as bash lol @GalaxyWolfX

GalaxyWolfX (77)

@Coder100 (FACEPALM) Yes, sorry. I just took notice of the language used therein. I apologise.

GalaxyWolfX (77)

@FalconTFG You are simply using a Python file. Copy the code from that file, then paste it into a file named main.sh