FORUMS: list search recent posts

podcast cgi - advice if you can

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
mark cookmanpodcast cgi - advice if you can
by on Jun 29, 2009 at 5:30:56 pm

Where should I find or create the #{CGI_CONF_FILE} mentioned below ? ...when Podcast producer fails my http error log reports:



Fri Jun 26 19:27:31 2009 error http://client 10.23.1.172 /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:36:in `read_config': CGI Configuration file does not exist (CGIException)
Fri Jun 26 19:27:31 2009 error http://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:30:in `initialize'
Fri Jun 26 19:27:31 2009 error http://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:275:in `new'
Fri Jun 26 19:27:31 2009 error http://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:275
Fri Jun 26 19:27:31 2009 error http://client 10.23.1.172 Premature end of script headers: pcastupload.cgi


If I look at the file /usr/share/podcastproducer/cgi-bin/pcastupload.cg then line 30 reads as follows :


class UploadCGI
def initialize
@config = read_config
end

def read_config
if (!File.exist?(CGI_CONF_FILE))
ASLLogger.error "#{CGI_CONF_FILE} does not exist"

raise CGIException.new, "CGI Configuration file does not exist"
end

if (!File.readable?(CGI_CONF_FILE))
ASLLogger.error "#{CGI_CONF_FILE} is not readable"
raise CGIException.new, "CGI Configuration file is not readable"
end

# We need to read from our special config file for the location of the shared filesystem
@config = {}

File.open(CGI_CONF_FILE, "r") do |file|
# Read all the key=value pairs out of the CGI config file into @config
lines = file.readlines
lines.each do |line|
key, value = line.chomp.split("=")
if (key && value)
@configkey = value
end
end
end


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]