Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 240

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/lib/plugins/tabinclude/helper.php:240) in /usr/share/nginx/html/inc/Action/Export.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/lib/plugins/tabinclude/helper.php:240) in /usr/share/nginx/html/inc/Action/Export.php on line 106
python

Python Scripting

  • Searching a File
  • Directory Search

config_directory=[]
with open("/etc/httpd/conf/httpd.conf", "r") as search_file:
    for line in search_file:
        if 'IncludeOptional' in line:
                config_directory.append(line)
                print config_directory[0]