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 employmen

Re: getting files from the internet

2004-10-18 Thread Jeff Herbeck
I have this working now: #!/usr/bin/perl use strict; use warnings; use HTTP::Response; use LWP::Simple 'getstore'; my $url = 'http://www.jeffherbeck.com/arch.doc'; my $remote_user = $ENV{REMOTE_USER};# || 'unknown_user'; my $file= 'newfile.txt'; my $response= HTTP::Response-

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 = $E

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" >

perl.beginners.cgi Weekly list FAQ posting

2004-10-18 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addres

Re: Files -read write - an epiphany and question

2004-10-18 Thread Wiggins d Anconia
This doesn't have anything to do with CGI so would be better directed to [EMAIL PROTECTED] instead > > I have been studying W/R to files... > W/R to a string and to an array. > and I must say I think I have it. > > I can read a file into an array IF i wrote the file using "\n" between vars,

Re: getting files from the internet

2004-10-18 Thread Jeff Herbeck
This is the only log file that had been modified after I tried to run the script. It was access_log 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/

Files -read write - an epiphany and question

2004-10-18 Thread Luinrandir Hernsen
I have been studying W/R to files... W/R to a string and to an array. and I must say I think I have it. I can read a file into an array IF i wrote the file using "\n" between vars, yes and I can read the entire file into a string (to later be split) by using delimiters like ","yes??? I

Re: Executing pdflatex via CGI script

2004-10-18 Thread Jan Eden
Hi Gunnar, Gunnar Hjalmarsson wrote on 17.10.2004: >Jan Eden wrote: >>The script manages to write data to my output file if I created it >>first and chmodded it to 666, but fails otherwise. >> >>This is because the script is run by the web user, of course. Is >>there a more or less secure way to