Ask coding questions

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

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

Voters
SharyuRathod
FalconTFG
Comments
hotnewtop
Coder100

it IS a simple problem!

Step 1:
create a main.sh file

Step 2.
put this inside it:

GalaxyWolfX

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

Coder100

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

GalaxyWolfX

@Coder100 Did you not see the language?

GalaxyWolfX

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

Coder100

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

GalaxyWolfX

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

Coder100
GalaxyWolfX

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