Re: check for def

2006-12-01 Thread Bill Jones
? Yes, the 'use CGI' stuff will work even on the command-line (ie, when not used in a CGI/HTTP gateway) environment. HTH/-Sx- -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: check for def

2006-12-01 Thread Bill Jones
[sorry for following up my own post] On 12/1/06, Bill Jones [EMAIL PROTECTED] wrote: Yes, the 'use CGI' stuff will work even on the command-line (ie, when not used in a CGI/HTTP gateway) environment. A specific example - #! /usr/bin/perl -wT use CGI; use strict; use warnings; use

Re: ways to iterate over params

2006-11-30 Thread Bill Jones
On 11/30/06, David Bear [EMAIL PROTECTED] wrote: my $q = CGI-new(); my %params = $q-Vars; foreach $f (keys (%params)) { print $f is $params{$f} ; } use CGI; my $q = CGI-new(); my %params = $q-Vars; foreach my $f (keys (%params)) { print $f is $params{$f}\n; } -- WC (Bill) Jones -- http

Re: getting files from the internet

2004-10-19 Thread Bill Jones
--- Jeff Herbeck [EMAIL PROTECTED] wrote: I want to be able to have webtv users (who can't save files locally) to each have their own user account to log into the apache login, then type a URL of a file that they want to put into their own folder/webspace. Yes, then once they are

Reimplement CPAN as a Torrent?

2004-10-19 Thread Bill Jones
Should CPAN be re-implemented as a Torrent? P2P is really hot and raging in some circles. Maybe torrents can benefit us in legal ways? At any rate, this is a new torrent on SuprNova: http://66.90.75.92/suprnova//torrents/2545/Perl%20Programming%20Books.torrent If you like them - you should buy

Re: getting files from the internet

2004-10-18 Thread Bill Jones
--- Jeff Herbeck [EMAIL PROTECTED] wrote: 192.168.1.200 - - [18/Oct/2004:07:36:06 -0500] GET /cgi-bin/test/test.cgi HTTP/1.1 401 1248 - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) 127.0.0.1 - - [18/Oct/2004:07:36:11 -0500] GET /arch.doc HTTP/1.1 200 27136 -

Re: getting files from the internet

2004-10-18 Thread Bill Jones
[this is not a question - it is just a small follow-up] This code only gives me 404 File Not found -- which is correct behaviour - #!/usr/bin/perl use strict; use warnings; use HTTP::Response; use LWP::Simple 'getstore'; my $url = 'http://insecurity.org/test.doc'; my $remote_user =

Re: getting files from the internet

2004-10-18 Thread Bill Jones
--- Jeff Herbeck [EMAIL PROTECTED] wrote: but the directory it goes to has to be owned by apache. Is there any way it can be made to be owned by the remote user? Dynamically set ownership of an unknown user? Yes - But why would you want to do that? -Sx- = -Sx- seeking employment:

Re: Executing pdflatex via CGI script

2004-10-17 Thread Bill Jones
--- Jan Eden [EMAIL PROTECTED] wrote: a) create / write to a file b) apply pdflatex to that file (i.e. create a pdf file from the .tex source) c) open the resulting pdf file (using the open function in OS X) Set Group ID Directories? Um, allow the pdflatex to run as the web userid? Maybe

Re: getting files from the internet

2004-10-17 Thread Bill Jones
--- Jeff Herbeck [EMAIL PROTECTED] wrote: This code gives me a 500 internal server error. And the WWW Server Logs say - what? -Sx- = -Sx- seeking employment: http://youve-reached-the.endoftheinternet.org/ ___ Do you Yahoo!? Declare Yourself

Re: Capturing PID of Shell Calls

2004-10-11 Thread Bill Jones
--- Jamie Bridges [EMAIL PROTECTED] wrote: I am attempting to collect the PIDs of system/backtick calls ( up to 40 of them ) and revisit them to ensure that they completed. The frontend interface is CGI but in this case that part is working fine. I cannot, however, find anything in my

Re: how to execute a perl file in cgi?

2004-10-10 Thread Bill Jones
--- Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: Bill Jones wrote: The third way - `` (back-ticks) is highly discouraged. Discouraged? Why? I thought that was depending on what exactly it is you want to do, e.g. whether you want to capture the output from the script you run. Well

Re: how to execute a perl file in cgi?

2004-10-10 Thread Bill Jones
--- Xiangli Zhang [EMAIL PROTECTED] wrote: Since I want to analyse a complicated problem involved with one file.pl, I am suspect the .pl file was not executed. I tried with very simple file.pl only printing one line, but it does not work. The following is the code: the cgi file

Re: how to execute a perl file in cgi?

2004-10-09 Thread Bill Jones
--- Xiangli Zhang [EMAIL PROTECTED] wrote: Can anybody tell me how to execute a perl file in perl cgi? E.g test.cgi and file.pl, I want to add one line to execute file.pl in test.cgi. How I can do it? There are two paths you can choose for execution: system - which executes and then

Re: undefined value error

2004-10-02 Thread Bill Jones
--- David Kirol [EMAIL PROTECTED] wrote: Xiangli Zhang wrote: I got the following error when one cgi file 'test.cgi' was called from HTML: Can't call method sequence on an undefined value use DNAseq; print Content-type: text/html\n\n; Justin, I think you are making a

Re: cant read cookie values from popup window....... plzz help me........

2004-09-21 Thread Bill Jones
--- manoj tr [EMAIL PROTECTED] wrote: i send thecode that i corrected as follows. $cookie = $output-cookie(-name = 'uid', -value = u100', -expires = '+1d'); Well, for one, your quotes are unba;nced starting at the above line. Also, I would use - use strict; use warnings; use

RE: HINT: regex coach

2004-09-14 Thread Bill Jones
--- NYIMI Jose (BMB) [EMAIL PROTECTED] wrote: http://www.weitz.de/regex-coach/ Just so this message isn't left unanswered, I'll state: This hint have been sent many times to this list that's may be why There wasn't reactions to this message ? As was already mentioned: Hard to

Re: Mailing Script

2004-07-14 Thread Bill Jones
--- Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: One web surfer - one web page. Don't understand what you mean by that. :) Well YOU ask THEM to surf to YOUR web site to fill out and HTML page =/ :) But then you E-MAIL them a reply. Why not just say what you want on the web page itself?

Re: Mailing Script

2004-07-12 Thread Bill Jones
--- Randal L. Schwartz [EMAIL PROTECTED] wrote: Werner == Werner Otto [EMAIL PROTECTED] writes: Werner $email = param(email); Do *not* send email to addresses taken from forms. Ever. HTML + CGI + E-Mail = VeryBadThing... Well, at any rate, the best place to see if you are listed is at:

Re: Mailing Script

2004-07-12 Thread Bill Jones
--- Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: one submitted address, the messages are plain text, and the size is limited). If some idiot would use it for sending unsolicited messages (has never happened so far), I would know and would be able to take actions. The only realistic option is

Re: OT: mysql vs. postgresql (was: Re: CGI and mySQL book, any recommendation.)

2004-06-02 Thread Bill Jones
Wondering whether MySQL or Postgres is faster (or better) via CGI (which is the topic of this list) is sort of like wondering whether a JAPH which has less characters is in fact faster that longer equivalent code - all without looking at maintenance, ease of use, and understandability. I know

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Bill Jones
Greetings =) --- Randal L. Schwartz [EMAIL PROTECTED] wrote: The only reason to use MySQL these days is ignorance or legacy. Even Blackboard, a major CMS / distance learning software developer, abandoned MySQL in favor of baby Oracle. (Baby Oracle is no better than PostgresSQL IMO. Plus

Re: Template

2004-05-24 Thread Bill Jones
--- Werner Otto [EMAIL PROTECTED] wrote: Hi there, How to I include or call another cgi script from a current one. What does the syntax look like? Don't do it that way; See perldoc require That is what I would recommend - otherwise you would need to have the called cgi call your

Re: suggestions?

2001-10-03 Thread Bill Jones
On 10/2/01 4:06 PM, _brian_d_foy [EMAIL PROTECTED] wrote: RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon[OR] you're generous. i just F them outright. True, of course. But I use Perl and Apache here FCCJ to teach 1-2 yr college students in Open Source technologies, etc. They

Re: anti-SSSCA petition

2001-10-03 Thread Bill Jones
On 10/3/01 2:46 PM, Peter Cline [EMAIL PROTECTED] wrote: At 02:39 PM 10/3/01 -0400, Bill Jones wrote: On 10/3/01 1:56 PM, Michael [EMAIL PROTECTED] wrote: http://www.petitiononline.com/SSSCA/petition.html text of bill is available here: www.parrhesia.com/sssca-draft.pdf Peter: LOL

Re: anti-SSSCA petition

2001-10-03 Thread Bill Jones
[original post edited] But, if you can come up with a way to sign it using Perl :) I will look at it :) I found a good starting spot: 79 modules found in 11 distributions matching 'PDF'   PDF-111  by  Antonio Rosella Released 14th February 2000 PDF  - Library for PDF access and

Re: References

2001-10-03 Thread Bill Jones
On 10/3/01 4:11 PM, Randal L. Schwartz [EMAIL PROTECTED] wrote: to the beginners list, not the beginnners-cgi list. *Uncle* -Sx- (Sorry.) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: suggestions?

2001-10-02 Thread Bill Jones
i have a problem in which i have a lists of Domain names ..k, and i need to get there matching email address of an external site but i cant arite a shell script so i was wondering if anyone has any ideas or code that can help me with what im doing? Get what matching email addresses? Are

Re: running commands on UNIX from a cgi

2001-09-26 Thread Bill Jones
On 9/26/01 12:05 PM, Mr. CRJ. Clarke [EMAIL PROTECTED] wrote: I am having diffuculties running a unix command with variables obtained from a submitted via a web cgi script. the command is /gspq $var1 $var2 $var1 and $var2 are obtained from a web and can be displayed but I cannot send these

Re: running commands on UNIX from a cgi

2001-09-26 Thread Bill Jones
On 9/26/01 6:06 PM, Chaka Clarke [EMAIL PROTECTED] wrote: What are the main dangers and what is the safer solution ? The primary is trusting anyone to enter *normal* data. If your script is installed with read/write to the CGI directory then someone could construct a command to write a file