pythonlinuxshredhat

how to run python files on my red hat server?


I tried to use sh but i always get command not found in line x errors. I am using Red Hat Enterprise Linux and i am opening a plugin for Nagios programmed in python.

Error: check_fileage.py: line 3: import: command not found


Solution

  • Use python pythonFile.py from your bash shell i.e. from the terminal