Perl WSC and ASP and Permissions

2002-12-20 Thread Aaron Trevena
hi guys, I have a problem calling a perl WSC thru ASP - My ASP page calls the WSC fine, the WSC then calls Crypt::PGPSimple which then calls PGP through the command line. The WSC runs, but the encryption fails and I get an error message that the file is not found - Oddly identical code produces t

RE: Adding keys and values to HTML::Template param

2002-10-18 Thread Aaron Trevena
> OK, HTML::Template has you create a hash whose values are used by a > template. Construction is like this: > $template->param( > HOME => $ENV{HOME}, > PATH => $ENV{PATH}" > ); > Dumb question, but how to you ADD to this hash afterwards. I hav

RE: OT: Script Review Process

2002-10-18 Thread Aaron Trevena
There has been some recent discussions at use.perl.org (in the journals) about code review, the conclusion being that it can be very rewarding if applied well. The first thing to decide is the goals of the review : is it to ensure guidelines and standards are followed (in which case some elements

RE: help with text

2002-10-16 Thread Aaron Trevena
> HTML form say Aform.html submitted to Ascript.cgi which collects information > and passes it to another cgi script say Bscript.cgi on a different host (if > possible). Use the LWP modules particularly perldoc (www.perldoc.com, select modules in CPAN) LWP::UserAgent, this allows you to submit fo

RE: FAQ

2002-05-22 Thread Aaron Trevena
> At 15:23 22/05/2002, Aaron Trevena wrote: > > > Why don't we make a FAQ Auto-responder? > > > It could scan subjects and first ten lines for > > > a FAQ, and if it finds one, send the FAQ answer. > > > > > > So it wouldn't c

RE: FAQ

2002-05-22 Thread Aaron Trevena
> Why don't we make a FAQ Auto-responder? > It could scan subjects and first ten lines for > a FAQ, and if it finds one, send the FAQ answer. > > So it wouldn't cope with the silliest questions, > but should get most Actually its better to include the urls to the archive and the faq in the em

RE: PerlScript Sans VBScript/Javascript

2002-05-21 Thread Aaron Trevena
> a) Has anybody observed any **serious** performance degradation with > PerlScript engine of AS? > > I haven't worked with PerlScript in ASP for two years now, but never saw > *any* performance problems when I did... well except for DB > connections not closing, but that was my fault. Perlscript

RE: anybody know how to authenticate thousands of static html pages

2002-05-20 Thread Aaron Trevena
Why not just use a crypt'ed cookie ? create a cookie to hold the username, password and expiry date, encrypt them so that they can't be fiddled with and check them in your cgi script, redirecting to the start page if the cookie is no good or expired. Otherwise check that the referrer is correct

RE: Newbie book

2002-05-10 Thread Aaron Trevena
> Would you please recommend an introductory level book. > I prefer ones with alot of tutorials/projects. > A book of projects would be great. Randal Shwartz's 'Learning Perl' uses plenty of examples and explains perl well Followed by Tom Christiansen / Nathan Torkington 'Perl Cookbook' if you a

RE: Preferred PERL Editor

2002-05-10 Thread Aaron Trevena
re: emacs > > >Also, no blinking bracket matching, doesn't understand qq{}, qw//, etc. > > > > What is blinking bracket matching? > Xemacs blinks the matching bracket when your on the other match. Xemacs also has other nifty features such as warning you of unmatched heredoc, brackets and incompl

time to retire this thread was (RE: Secure platforms DO matter!)

2002-05-07 Thread Aaron Trevena
The thread is becoming a nuisence.. 1) Some people prefer to trust adverts to their more experienced peers 2) Some people could go on for ever about how insecure windows is 3) Its not very perl related. > By the numbers: Comparing Windows security to Linux > http://www.techrepublic.com/article.

RE: Secure platforms DO matter!

2002-05-07 Thread Aaron Trevena
> Are we talking about Windows NT 4.0, Windows 2000, or IIS *.*. All. So far every release has been vulnerable. Even the patches are sketchy. > Have you all heard anything about win64? Do have any faith that MS is > changing to become a more security aware company? MS is staking > its life on

RE: Secure platforms DO matter!

2002-05-07 Thread Aaron Trevena
> Not really my point. My point is that the system is only secure as the > people who run it. It is my understanding that most vulnerabilities these > days are not caused by bugs in the systems but rather lack of > knowledge/control of the adminstrators running the systems. The original point w

RE: Perl Modularisation

2002-05-03 Thread Aaron Trevena
> At 16:25 03/05/2002 +0100, Aaron Trevena wrote: > >path/to/module/module.pm can be accessed as : > >use path::to::module::module; > > > >where the module starts : > >package path::to::module::module; > > And as far as I know perl only finds this if it is i

Secure platforms DO matter!

2002-05-03 Thread Aaron Trevena
> Presuming of course that the server is set up to be secure. All of those > OSes can have large gaping holes in their security caused both by > admin user action and inaction. If you were to chose a server for your bank to use would you prefer it had 5 to 10 vulnerabilities a year of which 1 or

RE: remove first line

2002-04-09 Thread Aaron Trevena
> I need to process a file where each line contains data. Each > line can be of variable length. I need to avoid losing any data if the process > of the line failed. I was thinking if I could read and then remove the first line of > the file, I would not affect the rest of the file if I died mi

RE: Perl's exec and system functions

2002-04-02 Thread Aaron Trevena
> To get the results, do something like > @results = `ping $ip`; # Note the backticks Whenever you use backticks ensure any variables passed are 'safe' you dont want somebody entering " 192.168.0.1\nrm- rf * " as an IP address! If you want to use backticks ensure the ip address is valid: my $s

RE: Win32::OLE Problem please help

2002-03-15 Thread Aaron Trevena
previously.. > > Sorry, I'm not very expert in this area, but perhaps the > > method name is case-sensitive and should be "Value" instead > > of "value"? According to Scott Mitchell in Designing Active Server pages ( good book if you are a vbscript weeny who doesn't know how to program ) ADO meth