Ask coding questions

← Back to all posts
problem with TESTOS 2
Ryanand (34)

so i made some .sh files and when python opens them it does not work perfectly when i do:

echo hello!

when python opens it, it's this:

echo hello!

instead of:


help me!

pyelias (1560)

Opening a .sh file is not the same as running its contents. If you want to run the files, use os.system like you did in

Scoder12 (708)

@pyelias Wouldn't subprocess be better?

Ryanand (34)

hmmm cant choose between your advices