Re: CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-16 Thread Shlomi Fish
> I want to be able to the same thing via cgi-bin, can anyone advise where to > start. Basically, I want to be able to display the contents of the > INI/config file in some kind of FORM or web page and then allow the user to > be able to edit and save it at the same time. That is do

AW: CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-15 Thread Thomas Bätzler
newbie01 perl asked: > At the moment, I have some sort of INI/config file that I edit manually > via vi. These config files are "simple" delimited file that are used by > some of the scripts running on the server. > > I want to be able to the same thing via cgi-bin, can

CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-15 Thread newbie01 perl
Hi, At the moment, I have some sort of INI/config file that I edit manually via vi. These config files are "simple" delimited file that are used by some of the scripts running on the server. I want to be able to the same thing via cgi-bin, can anyone advise where to start. Basically,

Re: cgi-bin will not execute perl program [SOLVED]

2007-06-21 Thread Mike Williams
On 6/20/07, whitsey <[EMAIL PROTECTED]> wrote: > On 6/14/07, Mumia W. <[EMAIL PROTECTED]> wrote: > Did some tinkering, commented out that option and Add-Handler which I > also thought was required and my cgi code still worked. > > #Options ExecCGI > #AddHandler cgi-script .cgi > > Then I found t

Re: cgi-bin will not execute perl program

2007-06-21 Thread whitsey
;>> > > >>> AllowOverride None > > >>> Options None > > > >> You need "Options ExecCGI" or (more probably) "Options +ExecCGI" > > > > The Apache/Tomcat documentation states that the "ScriptAlias&q

Re: cgi-bin will not execute perl program

2007-06-14 Thread Mike Williams
uot; or (more probably) "Options +ExecCGI" > > The Apache/Tomcat documentation states that the "ScriptAlias" > directive automatically assigns the alias as a cgi-bin, therefore all > files within this directory are by default assigned as files to be > executed.

Re: cgi-bin will not execute perl program

2007-06-14 Thread Mumia W.
ot;ScriptAlias" directive automatically assigns the alias as a cgi-bin, therefore all files within this directory are by default assigned as files to be executed. I did add this however is made no difference... You're right. Your configuration code (without +ExecCGI) worked on my system (Apache

Re: cgi-bin will not execute perl program

2007-06-14 Thread whitsey
"ScriptAlias" directive automatically assigns the alias as a cgi-bin, therefore all files within this directory are by default assigned as files to be executed. I did add this however is made no difference... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: cgi-bin will not execute perl program

2007-06-13 Thread Mumia W.
On 06/12/2007 09:38 PM, whitsey wrote: [...] AllowOverride None Options None You need "Options ExecCGI" or (more probably) "Options +ExecCGI" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

cgi-bin will not execute perl program

2007-06-13 Thread whitsey
I am trying to execute the printenv perl script in the cgi-bin directory and it is printing the code instead of executing the script. Normally this is prety basic stuff setting this up however I just can't get it to work. I have gone through the Apache documentation and performed everythi

Re: Searching for a free CGI-BIN

2002-02-03 Thread Michael Kelly
On 2/3/02 1:49 PM, Sir Douglas Cook <[EMAIL PROTECTED]> wrote: > Searching for a free CGI-BIN > > I have Sympatico highspeed which does not support custom cgi. > > I have Tropod which is slow and has limits on every script I write. > Example: $ENV{REMOTE_HOST}; retur

Searching for a free CGI-BIN

2002-02-03 Thread Sir Douglas Cook
Searching for a free CGI-BIN I have Sympatico highspeed which does not support custom cgi. I have Tropod which is slow and has limits on every script I write. Example: $ENV{REMOTE_HOST}; returns 10.10.23.235 and that is not my IP address at the time. Is there a site that I can obtain free

Re: Problem executing script in cgi-bin dir

2001-08-25 Thread Curtis Poe
. My problem is that when > I attempt to execute a simple script in my cgi-bin dir, the script > attempts to save as, rather than execute the perl script. > Any help would be appreciated. Assuming that you are actually running them through a Web server, it sounds like your Web server is no

Problem executing script in cgi-bin dir

2001-08-25 Thread Craig Monroe
Folsk, Forgive me. I am new to the list and cgi's in general. I decided that I wanted to test my scripts locally, before I implement them and/or debug them on the remote server. So, I build a unix box for my house. My problem is that when I attempt to execute a simple script in my cgi-bi

RE: Apache and cgi-bin directory - Redhat 7.1

2001-07-17 Thread Frank J. Schmuck
Mel, BINGO! Thanks for the assist. Frank -Original Message- From: Mel Matsuoka [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 8:22 PM To: [EMAIL PROTECTED] Subject: Re: Apache and cgi-bin directory - Redhat 7.1 At 05:15 PM 07/16/2001 -0400, you wrote: >I have apache set up

Re: Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread Mel Matsuoka
At 05:15 PM 07/16/2001 -0400, you wrote: >I have apache set up on a Linux machine running Redhat 7.1 (local home >network). The install (from rpm) placed the directories as follows: > >/var/www/html >/var/www/cgi-bin >/var/www/icons > >I can point a browser to 192.168.x

RE: Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread Fco. Javier Valladolid Hdez.
- Original Message - From: Frank J. Schmuck <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 16, 2001 4:15 PM Subject: Apache and cgi-bin directory - Redhat 7.1 > I have apache set up on a Linux machine running Redhat 7.1 (local home > network). The

RE: Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread Kuchler, David
Couple of things to check: Now, if I'm reading this correctly, you already have http://hostname/cgi-bin/perlfile.cgi running if you point the browser directly to that link. Now, you're trying to get that script to run by pointing to http://hostname/cgi-bin/ itself. The first thi

Re: Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread fliptop
point the browser to http://192.168.xxx.xxx//cgi-bin > > directly to execute a script. there should not be 2 slashes between the ip and the cgi-bin: http://192.168.xxx.xxx/cgi-bin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread Brett W. McCoy
On Mon, 16 Jul 2001, Frank J. Schmuck wrote: > I have apache set up on a Linux machine running Redhat 7.1 (local home > network). The install (from rpm) placed the directories as follows: > > /var/www/html > /var/www/cgi-bin > /var/www/icons > > I can point a browser to

Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread Frank J. Schmuck
I have apache set up on a Linux machine running Redhat 7.1 (local home network). The install (from rpm) placed the directories as follows: /var/www/html /var/www/cgi-bin /var/www/icons I can point a browser to 192.168.xxx.xxx and I am taken to the /var/www/html directory and the file

RE: cgi-bin directory

2001-07-10 Thread Bradley M. Handy
I generally put my cgi-bin directory in the same level as my root www directory. For example: root www -> /usr/local/www/htdocs cgi-bin -> /usr/local/www/cgi-bin Then you need to add a ScriptAlias Directive (if you're using Apache) into your httpd.conf file

RE: cgi-bin directory

2001-07-10 Thread Frank J. Schmuck
Yes of course. My question is where in the linux box; \usr\cgi-bin \root\cgi-bin \cgi-bin that's what I meant to say... Thanks Frank -Original Message- From: Aaron Craig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED] Subject: Re: cg

Re: cgi-bin directory

2001-07-10 Thread Aaron Craig
At 11:10 10.07.2001 -0400, Frank J. Schmuck wrote: >I have a home network set-up to test cgi scripts. I have a Win2k box hooked >up to a linux box. The intent is to write on the Win2k box and test on the >Linuxbox. My question is where should the cgi-bin directory reside? > >

cgi-bin directory

2001-07-10 Thread Frank J. Schmuck
I have a home network set-up to test cgi scripts. I have a Win2k box hooked up to a linux box. The intent is to write on the Win2k box and test on the Linuxbox. My question is where should the cgi-bin directory reside? My intent is to open a browser from the Win2k box and look at http

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
> the script should be ... thanks John. OK got it working. so what am I looking for? here is some of the info: PATHS are: /bin /usr/vde/bin /usr/local/bin /usr/gnu/bin /usr/ucb /usr/css/bin /usr/local/cvbin $INC[1]= /usr/local/pkg/perl5/lib $INC[2]= /usr/local/pkg/perl5/lib/site_perl/sun4-so

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
tdk wrote: Did you just copy the FTP.pm file into this area, or did you actually do the install? i.e., something like perl Makefile.PL prefix=/myinstall/directory make make test make install I just deleted the entire libnet folder & started over. so, first I did: perl Makefile.PL prefix=/l

RE: using modules installed in local CGI bin

2001-06-08 Thread Moon, John
print ''; } } else { print "$key = $ENV{$key}\n"; } } print 'INC follows:'; foreach $b (@INC) { print '$INC[' . $i++ . "]= $b\n"; print ''; -Original Message- From: Al Hospers [mailto:[EMAIL

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
> Oops ... too much paste ... sorry John. does not compute? Al

RE: using modules installed in local CGI bin

2001-06-08 Thread Curtis Poe
> if ($#path > 0) > @paths=split /:/, $ENV{$key}; Should be if ($#path > 0) { @paths=split /:/, $ENV{$key}; } Your content type should be (space after the colon) print "Content-Type: text/html\n\n"; --- Al Hospers <[EMAIL PROTECTED]> wrote: > is this correct? >

RE: using modules installed in local CGI bin

2001-06-08 Thread Moon, John
Oops ... too much paste ... John W Moon -Original Message- From: Al Hospers [mailto:[EMAIL PROTECTED]] Sent: June 08, 2001 15:57 To: [EMAIL PROTECTED] Subject: RE: using modules installed in local CGI bin is this correct? #!/usr/local/bin/perl print "Content-Type:text/htm

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
> Did you just copy the FTP.pm file into this area, or did you > actually do > the install? i.e., something like > > perl Makefile.PL prefix=/myinstall/directory > make > make test > make install I did perl Makefile.PL but not the perfix... stuff. perhaps I should remove it all, copy it up again

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
is this correct? #!/usr/local/bin/perl print "Content-Type:text/html\n\n"; print 0) @paths=split /:/, $ENV{$key}; if

RE: using modules installed in local CGI bin

2001-06-08 Thread Timothy Kimball
Al Hospers wrote: : I changed the setup to : : #!/usr/local/bin/perl : use CGI qw(:all); : use lib "./libnet"; : use Net::FTP; : print header; : ... : now I get this error : : BEGIN failed--compilation aborted at weather_ftp.cgi line 4. I presume this is from the server's error_log. Is th

RE: using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
OK, I changed the setup to #!/usr/local/bin/perl use CGI qw(:all); use lib "./libnet"; use Net::FTP; print header; originally this was the error I got: BEGIN failed--compilation aborted at weather_ftp.cgi line 4. vde$ perl weather_ftp.cgi Can't locate Net/FTP.pm in @INC (@INC contains: ./

Re: using modules installed in local CGI bin

2001-06-08 Thread Timothy Kimball
: use line "./libnet"; sorry, that should be use lib "./libnet"; -- tdk

Re: using modules installed in local CGI bin

2001-06-08 Thread Timothy Kimball
Al Hospers wrote: : ... HOWEVER, I cannot get my : script to find the modules. : : here's the initial part of the code. according to the error message it fails : on line 4 where it cannot find the Net::FTP module. : : #!/usr/local/bin/perl : use CGI qw(:all); : use lib "/libnet/Net"; : use

RE: using modules installed in local CGI bin

2001-06-08 Thread Moon, John
NC follows:'; foreach $b (@INC) { print '$INC[' . $i++ . "]= $b\n"; } print ""; John W Moon -----Original Message- From: Al Hospers [mailto:[EMAIL PROTECTED]] Sent: June 08, 2001 14:02 To: [EMAIL PROTECTED] Subject: using modules installed in l

using modules installed in local CGI bin

2001-06-08 Thread Al Hospers
the hosting company they said they would not install libnet in the Perl libraries. so, I got the bundle from CPAN, copied them into my local CGI bin & installed them. the Makefile seemed to go OK. HOWEVER, I cannot get my script to find the modules. here's the initial part of the code.

Re: CGI-BIN

2001-06-05 Thread Timothy Kimball
ample, if you wanted ~merlyn/cgi to be a cgi-bin, simply: [incantation omitted] : And like magic, it's a CGI bin! And like magic, you've opened up a potential security hole, because you're allowing "general users" who probably know zip about web security to create CGI areas th

Re: CGI-BIN

2001-06-05 Thread Randal L. Schwartz
>>>>> "n6tadam" == n6tadam <[EMAIL PROTECTED]> writes: n6tadam> Perhaps I can join in the conversation?? Are you running apache as your n6tadam> websever? If so, you can specify mutiple aliases so that the main /cgi-bin/ n6tadam> folder is aliased to othe

Re: CGI-BIN

2001-06-05 Thread n6tadam
Hi, Perhaps I can join in the conversation?? Are you running apache as your websever? If so, you can specify mutiple aliases so that the main /cgi-bin/ folder is aliased to other folders of your convienience. If you need help, let me know. Regards, Thomas Adam - Original Message

Re: CGI-BIN

2001-06-05 Thread Exile
case. Thank you very much Exile - Original Message - From: Gary Stainburn <[EMAIL PROTECTED]> To: Exile <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 5:40 PM Subject: Re: CGI-BIN > Hi, > > firstly, a couple of netiquet (I hate that word)

Re: CGI-BIN

2001-06-05 Thread Hasanuddin Tamir
On Tue, 5 Jun 2001, Exile <[EMAIL PROTECTED]> wrote, > Hi All, Hi Exile, > I 've try to write some CGI scripts, however, I have to put my scripts in > cgi-bin.. so... anybody tell me what is this? The cgi-bin directory is by convetionally a place to put all CGI progra

Re: CGI-BIN

2001-06-05 Thread Gary Stainburn
but a web server question - although we're not averse to answering those too, but you would get better replies from a web server mailing list. the /cgi-bin/ directory is actually an alias set up in the web server's config file. On Apache, which you're running, this will be somewh

CGI-BIN

2001-06-05 Thread Exile
Hi All, I 've try to write some CGI scripts, however, I have to put my scripts in cgi-bin.. so... anybody tell me what is this? I mean anybody can tell me some concepts about redirect? My most problem is, I can't read write files in my home directory. The other case is , is that