#how to execute a file in linux

25 messages · Page 1 of 1 (latest)

graceful pebble
#

i want to make a .py file executeble

#

@somber patio can you help?

somber patio
#

heya

#

just right click it, go to Properties, and permissions tab. and mark it runnable

somber patio
#

yes

graceful pebble
#

then why i am unable to run it ?

somber patio
#

then u need some special python command to invoke it.

#

something like python3 ./thisthing.py

#

i might be wrong tho

#

or it may only run in a terminal environment possibly.. so in that folder in terminal: ./thisthing.py

graceful pebble
#

i got these steps

somber patio
#

yep. pretty much what I said.

graceful pebble
#

is this correct?

somber patio
#

yes looks right

graceful pebble
somber patio
#

idk ask roshie in main chat about it

#

or make sure that kit file is in the same folder, or in the system path variable

graceful pebble
somber patio
#

maybe just mention it in main first

somber patio