[6961] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 586 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jun 8 00:07:38 1997

Date: Sat, 7 Jun 97 21:00:22 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 7 Jun 1997     Volume: 8 Number: 586

Today's topics:
     a real easy question <david@gilmartin.uk.com>
     Anyone know why a VB app called from a perl script woul <growan@ica.net>
     Re: Can I perl script download a HTML page??? (Terje Bless)
     Re: Case Conversion <merlyn@stonehenge.com>
     Re: Case Conversion <rootbeer@teleport.com>
     Re: Count lines in file:which is fastest? (Andrew M. Langmead)
     Re: File glob works as root, but fails as regular user  <rootbeer@teleport.com>
     Re: filehandle problem (Andrew M. Langmead)
     Re: filehandle problem (TRAN Huu Da)
     formmail.pl:  Netscape Prompts for Save As;  IE Works F tbrennan@javanet.com
     Re: help! CGI ignorant! <sibsib@hotmail.com>
     Re: how to make a script executable on DOS (Abigail)
     Re: How to Run Adduser Function in a Perl Script??? <schramm@one.net>
     Re: moving form BSD to SunOS 5.5  (formmail.pl) (Terje Bless)
     Perl 5.004 binaries for Windows 95 (Paul Moore)
     Re: Perl obfuscated contest (Andrew M. Langmead)
     perl5.004 + linux (TRAN Huu Da)
     Re: Redefining STDOUT twice (Andrew M. Langmead)
     Re: Simulating 'thread pool' in Perl5 (Andrew M. Langmead)
     Upload security?? mw@xtra.co.nz
     Re: What does "UNIX" stand for.. (GOKUL CHANDER)
     Wheres the best online Perl tutorial? <stein@seas.ucla.edu>
     Win95 OSR 2.1 CD $35  W/Fat32, Fat converter, Full inst jasonben@aol.com
     Windows 3.1 / Perl 4 or 5 (Zac)
     write a new html page <surgery@powernet.co.uk>
     write a new htmp page <surgery@powernet.co.uk>
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 7 Jun 97 19:29:40 GMT
From: "DAVID GILMARTIN" <david@gilmartin.uk.com>
Subject: a real easy question
Message-Id: <01bad896$c7884300$73053cc3@surgery.powernet.co.uk>

this cgi works

what i want is to make the output a html file

what do i have to add


#!/bin/perl

@my_name = ("Eric ","C. ","Herrmann");

$myName[0] = "Scott ";
$myName[1] = "E. ";
$myName[2] = "Herrmann";

print "content-type: text/html\n\n";

print "Hello World @my_name wrote this\n";
print "Really @myName wrote this\n";
print "No Kidding $my_name[0] $my_name[1] $my_name[2] wrote this!\n";

yours

david



------------------------------

Date: 7 Jun 97 21:52:11 GMT
From: "Grant" <growan@ica.net>
Subject: Anyone know why a VB app called from a perl script would hang the VB app that runs fine solo?
Message-Id: <01bb54ba$ff792400$0200000a@www.paradise.com>

I've created a VB app that simply fullfills my search query through a
product's API.  When the VB app runs solo, there is no problem.  Call it
from a perl script and it hangs.  This is with Internet Information Server
2 - Netscape doesn't hang the VB app but won't allow a FileLen() call to
resolve a UNC reference to a file I need info on (again, VB app works fine
when run on it's own).  Is there any reason that having a perl script call
a local program would cause these side effects.  Run on Windows NT4.0 using
perl5 (that uses PerIIS.dll for perl scripts. - I also tried it with a
perl.exe for NT)  

   Any ideas would be extremely appreciated

  Email if possible please
  
  Grant Rowan
  growan@ica.net 


------------------------------

Date: Sun, 08 Jun 1997 00:48:27 +0200
From: link@tss.no (Terje Bless)
Subject: Re: Can I perl script download a HTML page???
Message-Id: <link-0806970048270001@news.uit.no>

In article <5mv9iu$cu1@hrotti.ifi.uio.no>, tina@htmlhelp.com wrote:

> = Dean Pentcheff =
>
>> A cursory search in any WWW search site would have yielded: 
>> http://www.perl.com  .
>
>  'cuse me for butting in like this with a slightly (!) off-topic comment,

[ditto] :-)


>but when refering to URLs that point to servers or directories as opposed
>to files, please remember to include the '/' at the end, ie.
>
>    http://www.perl.com/
>
>  and not
>
>    http://www.perl.com

Or maybe even utilize the sadly underestimated RFC 1738, dealing with,
among other things, URLs embedded in free-form text, which wants the syntax
<URL:http://www.perl.com/> to make the free-form text easily parseable, for
humans and computers both. And to make this as easy as possible, for
whoever are to use the URL, you could even give the full path to the Perl
home page, <URL:http://www.perl.com/perl/>, with the combined effect of
saving poor Tom's 200MHz Pentium server two hits from each user. :-)

-- 
Party? Party, lord? Yes, lord. Right away, lord.
        - Beopunk Cyberwulf


------------------------------

Date: 07 Jun 1997 09:00:05 -0700
From: Randal Schwartz <merlyn@stonehenge.com>
To: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Case Conversion
Message-Id: <8c206e1jzu.fsf@gadget.cscaper.com>

>>>>> "Tom" == Tom Phoenix <rootbeer@teleport.com> writes:

Tom> On Fri, 6 Jun 1997, Dipti V. Sonak wrote:
>> I have a mixed case string and I want to reverse the case of the
>> characters in the string. 

Tom> This is homework, isn't it? You would never need this in the real world,
Tom> so far as I can see.

Tom> Here's a method which should work even with accented characters, if
Tom> they're supported on your system.

Tom>     $new = join '', map { &revcase($_) } split //, $old;
Tom>     sub revcase { 
Tom> 	my $ch = shift; 
Tom> 	return uc($ch) if $ch eq lc($ch);
Tom> 	lc($ch);
Tom>     }

Or even, using the power of s///ge:

	$old = "I have a Perl String!\n";
	($new = $old) =~ s{([\w])}{
		my $lc_ch = lc(my $ch = $1);
		$ch eq $lc_ch ? uc($ch) : $lc_ch;
	}ge;
	print $new;

print "Just another Perl hacker," # but not what the media calls "hacker!" :-)
## legal fund: $20,495.69 collected, $182,159.85 spent; just 451 more days
## before I go to *prison* for 90 days; email fund@stonehenge.com for details

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me


------------------------------

Date: Sat, 7 Jun 1997 15:20:55 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Tung-chiang Yang <tcyang@netcom.com>
Subject: Re: Case Conversion
Message-Id: <Pine.GSO.3.96.970607152026.27552D-100000@kelly.teleport.com>

On Fri, 6 Jun 1997, Tung-chiang Yang wrote:

> tr/A-Za-z/a-zA-Z/;

That's not going to work on accented characters.

-- Tom Phoenix        http://www.teleport.com/~rootbeer/
rootbeer@teleport.com   PGP  Skribu al mi per Esperanto!
Randal Schwartz Case:     http://www.lightlink.com/fors/



------------------------------

Date: Sat, 7 Jun 1997 13:42:09 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Count lines in file:which is fastest?
Message-Id: <EBErEA.7nG@world.std.com>

s11976@ctsc.hkbc.hk (P.M.Wong ) writes:

> Say my file is fairly long, (though each line is just one 8char. field)
> , i 'm interested to know which of the above evaluates no. of lines
> fastest?

If your lines are really a fixed size, the fastest would probably be:

$nl = -s $filespec / 9; # count no. lines based on 8 chars plus a newline

Of course, this depends on your operating system encoding newlines as
a single character.

> BTW, for method 1, how does the parameter 4096 depends on (i.e. any formula
> to calculate the best no. ) the no. of bytes in  my file so that
> i could get the fastest  response back?

The value to use for sysread, doesn't depend so much on the size of
your file, but the block size on the filesystem in which the file
resides. You can find the prefered I/O size from the stat() function.


-- 
Andrew Langmead


------------------------------

Date: Sat, 7 Jun 1997 15:30:42 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: David Glaser <dglaser@intercall.net>
Subject: Re: File glob works as root, but fails as regular user (?)
Message-Id: <Pine.GSO.3.96.970607152816.27552F-100000@kelly.teleport.com>

On Sat, 7 Jun 1997, David Glaser wrote:

> crw-r--r--   1 root     sys        1,   3 Oct 23  1996 /dev/null

That's not right. From everything I know, /dev/null should be
world-writable. Unless somebody knows otherwise (and I'd like to hear the
reason) you should fix it. Hope this helps!

-- Tom Phoenix        http://www.teleport.com/~rootbeer/
rootbeer@teleport.com   PGP  Skribu al mi per Esperanto!
Randal Schwartz Case:     http://www.lightlink.com/fors/




------------------------------

Date: Sat, 7 Jun 1997 17:24:33 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: filehandle problem
Message-Id: <EBF1ox.Cwt@world.std.com>

abigail@fnx.com (Abigail) writes:

>Tom Phoenix (rootbeer@teleport.com) wrote on 1376 September 1993 in
><URL: news:Pine.GSO.3.96.970606192154.6604C-100000@kelly.teleport.com>:
>++ On Sat, 7 Jun 1997, Mauroidis Giannis wrote:
>++ 
>++ > Is there any way i can return a filehandle from a child process tou
>++ > its father so that the father can access it like <$filehandle> ??
>++ > I tried to pipe it to the father but didn't work..
>++ 
>++ You can't send filehandles from one process to another, as far as I know.
>++ Sorry!

>p 348 of the Camel disagrees.

[ description of passing file descriptors over sockets deleted]

>I'm not going to say this is the method to go, but always when I
>see "can't", I think "Oh yeah?". Of course, the camel might be
>wrong.

Another, more detailed description of passing file descriptors between
processes is in W. Richard Steven's "Advanced Programming in the Unix
Environment" section 15.3 "Passing File Descriptors". Unfortunately,
Stevens chose C as the language to write his examples in. He shows
methods that works in 4.2, 4.3 BSD, what he calls BSD 4.3+ (eventually
became BSD 4.4) SysV 3.2, and SysV rel 4.

A more accurate statement might be "No portable way of passing a file
descriptor between processes that are not directly related to each
other." As long as we are talking about Unix, a parent can always open
file descriptors for the child to inherit. At the most, you'll have to
muck with the close-on-exec flags.

-- 
Andrew Langmead


------------------------------

Date: 8 Jun 1997 03:48:33 GMT
From: tranhu@JSP.UMontreal.CA (TRAN Huu Da)
Subject: Re: filehandle problem
Message-Id: <5nda2h$g9f@epervier.CC.UMontreal.CA>

Un jour, Tom Phoenix (rootbeer@teleport.com)
      affirmait publiquement que:

| On Sat, 7 Jun 1997, Mauroidis Giannis wrote:
| 
| > Is there any way i can return a filehandle from a child process tou
| > its father so that the father can access it like <$filehandle> ??
| > I tried to pipe it to the father but didn't work..
| 
| You can't send filehandles from one process to another, as far as I know.
| Sorry!

Just want to be sure this is what you are saying.

It's not possible to pass a filehadle to a parent process because when the
child dies, the filehandle is closed. But it is possible to pass
filehandle from the parent to the child. Using
	pipe($readhandle,$writehandle)
or
	select($rin, $win, $ein, $timeout);

but I couldn't make the latter work when forking multiple children. I
posted a question but, due to lack of knowlage in Perl5, I just can't make
it work. :-(((  Which, BTW, I ould need to but rather use the pipe() for
now.


__________________________________________________________________________
   TRAN, Huu Da                                  Universiti de Montrial
   tranhu@jsp.umontreal.ca         http://www.jsp.umontreal.ca/~tranhu/
//////////////////////////////////////////////////////////////////////////
La seule diffirence entre un caprice et une passion est que le caprice
dure un peu plus longtemps.                                    -- O. Wilde


------------------------------

Date: Sat, 07 Jun 1997 18:21:22 -0600
From: tbrennan@javanet.com
To: tbrennan@javanet.com
Subject: formmail.pl:  Netscape Prompts for Save As;  IE Works Fine
Message-Id: <865725058.26323@dejanews.com>

Dear Perl Gods...This is a deparate prayer for Help...I'm trying to use
Matt's formmail script with WinNT & IIS.  He's got a version of the
script on his site that he claims has been ported to run on Win32. As per
the instructions on his site for using the script on Win32, I've
downloaded and installed the program Windmail (as a UNIX SendMail
substitute???).In Matt's and WindMail's instructions, there's no mention
of theprogram "Blat," but I read someplace that the whole configuration
needs this utility to work properly, so I've also managed to get Blat
installed on my server.I've edited the registery to include a key for .pl
as instructed and I've added the appropriate switches to the key.  I've
also tried to run the script was a ".pl?" extension cause I saw a Usenet
posting that recommended this, but still no luck!!I've also given the
proper EXECUTE AND READ permissions to the IUSER account for the
appropriate directories as per instructed.***Matt's script works great
with IE and does everythingthat it needs to do.***However, when I hit the
Submit button on the same form with the Netscapebrowser, I get prompted
with the Save As dialog, and it wants me (and other site visitors) to
download the script (formmail.pl)!  YUCK! I suspect that is has to do
with MIME type or Perl headers and the configuration as to how Netscape
handles em.  Trouble is I'm clueless as to Perl syntax and how to edit
them.BTW, I got an alternative script to work with both browsers
at:http://www.digitaldelivery.com/cupage.html***But I really want to use
Matt's!The location of the faultly script (the one that doesn't work with
Netscape) is at:http://www.digitaldelivery.com/cupage10.html If you
please respond to me at tbrennan@javanet.com, I would be forever
grateful.  Thanks in advance.  Tammy  tbrennan@javanet.com

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


------------------------------

Date: Sat, 07 Jun 1997 13:54:30 -0400
From: Scott Blanksteen <sibsib@hotmail.com>
Subject: Re: help! CGI ignorant!
Message-Id: <3399A056.1C331130@hotmail.com>

Sam Fulton wrote:
> a) is there a way to REQUIRE someone to fill out a form in order 
> to gain access to other areas? 

Yes.  Take a look at 
  <http://hoohoo.ncsa.uiuc.edu/docs-1.5/tutorials/user.html>

> 
> b) is there a way to verify the supplied information to see if it's bogus or not?  Like, can it be
> made to check the supplied e-mail info to make sure it's an actual addy?

No.  There is no way to definitively check if an e-mail address is 
valid.  You can try to send a message to it, and if you get a 
response from the intended recipient, it's probably good, but if you 
get no response, it may or may not be good.  

You also might want to try a newsgroup relating to CGI programming
such as <comp.infosystems.www.authoring.cgi>.

Scott

-- 
Scott I. Blanksteen
sib (at) worldnet (dot) att (dot) net


------------------------------

Date: Sun, 8 Jun 1997 03:12:34 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: how to make a script executable on DOS
Message-Id: <EBFswy.DKn@nonexistent.com>

Larry D'Anna (ldanna@ix.netcom.com) wrote on 1376 September 1993 in
<URL: news:3399A7D3.3A6@ix.netcom.com>:
++ Does anyone know how to make a pearl script executable on a dos machine?

Hmmm, maybe by starting to learn how to spell the name of the language
correctly? After that, you can find the faq on the web, which talks
about compiling.


Abigail
-- 
perl5.004 -wMMath::BigInt -e'$=new Math::BigInt+qq;$$783$[$%9889$47$|88768$596577669$%$5$3364$[$$$|838747$[8889739$%$|$673$%$98$76777$=56;;$=$]*(q.25..($=@))=>do{print+chr$%$;$/=$}while$!=$'


------------------------------

Date: Sat, 7 Jun 1997 13:35:21 -0400
From: "R. Schramm" <schramm@one.net>
Subject: Re: How to Run Adduser Function in a Perl Script???
Message-Id: <5nc4sr$m3p$1@news.one.net>

You might be better off using the expect scripting language than you are
with perl.
 $j,u?OE" wrote in article <5nacnh$kud@netnews.hinet.net>...
>Hi,
>
>When we run the 'adduser' function on the screen, it prompts for
>some inputs. Can we run the function in a perl script?





------------------------------

Date: Sun, 08 Jun 1997 00:27:49 +0200
From: link@tss.no (Terje Bless)
Subject: Re: moving form BSD to SunOS 5.5  (formmail.pl)
Message-Id: <link-0806970027490001@news.uit.no>

In article <5n1bkd$p14@hrotti.ifi.uio.no>, tina@htmlhelp.com wrote:

>  a) The script doesn't output a proper "Content-Type: mime-type\n\n" 

Shouldn't that header termination be "\r\n"?
Did something change since I stopped doing CGI work?

-- 
Party? Party, lord? Yes, lord. Right away, lord.
        - Beopunk Cyberwulf


------------------------------

Date: Sat, 07 Jun 1997 21:44:16 GMT
From: gustav@morpheus.demon.co.uk (Paul Moore)
Subject: Perl 5.004 binaries for Windows 95
Message-Id: <339ad438.10945601@news.demon.co.uk>

As perl 5.004 is now available with Win32 support available "out of
the box", I'd like to use it. But from the readme, compilation is only
possible on Windows NT. As I have Windows 95, I can't compile. (I've
tried and it really doesn't work :-()

Can anybody point me to precompiled Win32 binaries which work on
Windows 95 (you need to have uncommented a line in the Makefile) which
I could use?

Thanks,
Paul Moore.
------------------------------------------------------------------------
Paul Moore                                   gustav@morpheus.demon.co.uk
The more it snows... Tiddley pom
The more my nose...  Tiddley pom
The more my nose...  Tiddley pom
Grows colder.
------------------------------------------------------------------------
 ... I got two words for Van Gogh..'Say what?'.


------------------------------

Date: Sat, 7 Jun 1997 14:16:08 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Perl obfuscated contest
Message-Id: <EBEsyw.InK@world.std.com>

"CS" <cswanson@io.com> writes:

>Can any kind soul tell me where the Perl obfuscation contest hangs out. Web
>site, email, news group, etc?

The first offical obfuscated perl contest was conducted by The Perl
Journal. The results are at
<http://orwant.www.media.mit.edu/tpj/contest-obfusc-entries>

Before that, the only outlet obfuscated perl was comp.lang.perl.misc
(or its comp.lang.perl predecessor) Exemplary examples, of course,
were Randal Schwartz's JAPHs. You can find a collection of them at
<http://www.perl.com/CPAN/misc/japh>

-- 
Andrew Langmead


------------------------------

Date: 7 Jun 1997 22:42:07 GMT
From: tranhu@JSP.UMontreal.CA (TRAN Huu Da)
Subject: perl5.004 + linux
Message-Id: <5nco3v$5oh@epervier.CC.UMontreal.CA>

Hi,

I'm having some troubles to compile perl5.004 under Linux.

I would like to know if someone could help me out whit this (please, don't
just answer YES, but also give me some hints ;-)  I have tried to compile
is, with no success, under any combination of:

pentium-133	kernel 2.1.26	Configure/configure	cc/gcc
pentium-166	kernel 2.0.0	Configure/configure	cc/gcc

It gives me this error output:

cc -c  -Dbool=char -DHAS_BOOL -I/usr/local/include -O2
-DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" -fpic -I../..  POSIX.c
POSIX.xs: In function `XS_POSIX_strtol':
POSIX.xs:3408: `IV_MIN' undeclared (first use this function)
POSIX.xs:3408: (Each undeclared identifier is reported only once
POSIX.xs:3408: for each function it appears in.)
POSIX.xs:3408: `IV_MAX' undeclared (first use this function)
POSIX.xs: In function `XS_POSIX_strtoul':
POSIX.xs:3429: `IV_MAX' undeclared (first use this function)
make[1]: *** [POSIX.o] Error 1
make[1]: Leaving directory `/usr/local/src/perl5.004/ext/POSIX'
make: *** [lib/auto/POSIX/POSIX.so] Error 2

Only places where I find those constants are:

[root@tran] 18:28:49 -502- /root$ find / -name '*.h*' -type f -print |
xargs grep IV_MIN
/usr/local/src/perl5.004/perl.h:#   define IV_MIN PERL_QUAD_MIN
/usr/local/src/perl5.004/perl.h:#   define IV_MIN PERL_LONG_MIN

Am I missing anything here?

Thanks in advance.

__________________________________________________________________________
   TRAN, Huu Da                                  Universiti de Montrial
   tranhu@jsp.umontreal.ca         http://www.jsp.umontreal.ca/~tranhu/
//////////////////////////////////////////////////////////////////////////
La philosophie a ceci d'utile qu'elle sert ` nous consoler de son
inutiliti.                                                 -- J. Commerson


------------------------------

Date: Sat, 7 Jun 1997 14:26:19 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Redefining STDOUT twice
Message-Id: <EBEtFw.MCH@world.std.com>

Ameesh Oza <ameesh@megatest.com> writes:

>I would like to

>open (STDOUT , "> $LOGFILE");

>...do my thing where all standard out does to $LOGFILE...

>close (STDOUT);

>#want next print to go to screen but do not know how to
>#redefine STDOUT after the close statement above

>print "program completed sucessfully...";

Instead of reopening STDOUT, how about setting default output
filehandle with the one argument select() function.

open LOGFILE, ">$LOGFILE" or die;
select(LOGFILE);
print "this goes to $LOGFILE\n";
select(STDOUT);
print "program completed sucessfully...\n";

If your really, really need to change STDOUT, 

open SAVEOUT, '>&STDOUT' or die "Can't dup STDOUT\n";
open STDOUT, ">$LOGFILE" or die;
print "this goes to $LOGFILE\n";
open STDOUT, '>&SAVEOUT' or die "Can't re-dup STDOUT\n";
print "program completed sucessfully...\n";
-- 
Andrew Langmead


------------------------------

Date: Sat, 7 Jun 1997 14:03:41 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Simulating 'thread pool' in Perl5
Message-Id: <EBEsE6.Etq@world.std.com>

[a copy of this article was e-mailed to the author of the preceding
article]

repayne@jeeves.net wrote:

>Here is what I want to do -- I have a list of files, directories,
>etc. that I want to run a command or commands on, and I want to
>parallelize it to a certain extent.  I want to have a $maxNumber which
>dictates the maximum number of parallel processes to run, moving
>through the list as I run a process.

Use fork() to create a child process. Keep track of the number of
fork()s you do. Loop around until you hit your max. Use either a
$SIG{CHLD} signal handler or the four argument select() to determine
when a child is finished. When that happens, decrement your count of
the number of running children, then fork() again until you hit your
maximum again.

>I never want to have more than $maxNumber of processes running at the
>same time, and I don't want to predefine the list of files on which a
>process will work ahead of time.  I want that list to be completely
>dynamic because all such processings will not be equal.

If the parent process of all of the processing is in charge of doling
out files to process, it can keep handing out files until done.

>Is there a way to do this in Perl, or would I have to move to a
>multi-threaded (C/C++) programming language to do this well?

As far as I can see, you need multitasking, not multithreading. I
wouldn't call either C or C++ an multi-threaded language,
anyway. (Maybe if you said Ada or Modula-2 (for rather mainstream
choices), or one of dozens of esoteric languges.)
-- 
Andrew Langmead


------------------------------

Date: Sat, 07 Jun 1997 19:53:14 -0600
From: mw@xtra.co.nz
Subject: Upload security??
Message-Id: <865730933.29720@dejanews.com>

Hi,

When allowing poeple to upload to their directory via their browser, what
security issues are there?

If someone uploaded a .exe or a file with a virus in, could these be
activated?

Are there any useful web pages with regard to upload security.

Thanks,

Michael

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


------------------------------

Date: Sat, 07 Jun 1997 14:12:56 EDT
From: gokul@cs.concordia.ca (GOKUL CHANDER)
Subject: Re: What does "UNIX" stand for..
Message-Id: <1997Jun7.141256@daffodil>


In article <01bc71a4$dca66980$49818e9f@gsa.gov>, "Bill Erwin" <bill.erwin@gsa.gov> writes:
|> UNIX started out as "Castrated MULTICS" and was shortened from there. 
|> Check out the "UNIX Haters Handbook" for further details.
|> 
|> Bill
|> 
|> 
It was originally named by Brian Kernighan as UNICS (Uniplexed
Computing System), it then evolved and became UNIX
-- 
-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#

P. Gokul Chander, Ph.D.    
Dept. of Computer Science,
Concordia University,
Montreal, Que H3G 1M8     E-mail.     gokul@cs.concordia.ca
Canada                    Home page.  http://www.cs.concordia.ca/~grad/gokul/

-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#-o@!#


------------------------------

Date: 6 Jun 1997 22:35:52 GMT
From: "John L. Stein" <stein@seas.ucla.edu>
Subject: Wheres the best online Perl tutorial?
Message-Id: <5na3c8$1fms@uni.library.ucla.edu>

Wheres the best online Perl tutorial?

I've searched Perl.net an Orielly thoroughly but could'nt
find a really good tutorial.

Thanks
-js



------------------------------

Date: Sat, 07 Jun 1997 10:28:47 PDT
From: jasonben@aol.com
Subject: Win95 OSR 2.1 CD $35  W/Fat32, Fat converter, Full install
Message-Id: <5nc5r0$d7n$534@usenet85.supernews.com>

Win '95 OSR-2.1 on CD with Fat32 Boot Floppy, FAT to FAT32 
converter; $35 + 4.50 for Postage/COD, or offer.  

Full install version. USB Support.  This CD also contains 
the Microsoft FAT to Fat32 converter.

Are you tired of losing up to 40% of your disk capacity
to the huge cluster size of FAT16, P-n-Pray that does
not work, poor pcmcia support, misidentified motherboard
resources, CPUs, ect?

Well, moving to the OSR 2.1 version of Windows '95 is the
answer.

Win '95 OSR2 also contains important patches, an expanded
(and debuged) drver library, PnP that works, GUI improvements
and bug fixes.  

Yes - Some, not all, of these are available for as downloads.   
Yet - The most important parts: *FAT 32*, the Kernel and  GUI
enhancements, PnP improvements and proper CPU identifier codes
are NOT available for download and currently can only be 
obtained with the purchase of a new computer or "memphis" 
(Win'97), whenever that will be available.

The CD is the full install version. Included is a OEM cd-key, 
an OSR2 boot floppy for creating a new FAT32 partition, MS CVT.EXE
for converting a FAT partition to FAT 32 detailed installation 
instructions.  In addition to these instructions, there is full 
documentation on the CD.   There is no "paper manual."  Except 
detailed installation information.  Your current Win '95 manuals 
will still apply, with a few *highly documented* exceptions.

The primary reason for migrating to OSR2 is, of course, FAT32, 
which increases the storage capacity of your drive simply
by keeping the cluster size at 4K, despite the size of your 
hard drive.  It also recognizes partitions larger than 2.1g,
the current Win '95 limit.

I was hoping to get $ 35 for the CD, Boot Disk and instructions,
+ 4.95 for USPS COD.  I am, however, open to reasonable offers.
I will pay shipping on pre-paid orders.
E-mail for more information.
Jason 




------------------------------

Date: Sat, 07 Jun 1997 21:07:03 GMT
From: cgsystem@dircon.co.uk (Zac)
Subject: Windows 3.1 / Perl 4 or 5
Message-Id: <5nclff$hhf$1@newsserver.dircon.co.uk>

I have read a mountain of information regarding Perl but nothing seems
to address my confusion. I am a 486 / Windows 3.11 user, and have
never seen a Unix Operating System.

I understand that I can write a perl script in pure text (in Windows,
Notepad for example) and upload it to a CGI directory, and it would
run.

Is that correct?

Other information (book: "60 Minute Guide to CGI programming with Perl
5" by Robert Farrell) seems to suggest that Even though I am a windows
3.11 user, I will still need to download a programme called Perl 5.

If Perl is a pure text language, why do I need a Programme which I
presume is a compiler of some sort. If I then find this programme and
am able to run it on my Windows 3.11 operating system, will it still
run on my Service Providers Unix Platform.

Would also be grateful to discover where I might find this programme
that is able to run on Windows 3.11

ftp.uu.net  does not seem to have Perl 5 for Windows 3.11

Thanks in advance.


Zac
------



------------------------------

Date: 7 Jun 97 18:17:11 GMT
From: "DAVID GILMARTIN" <surgery@powernet.co.uk>
Subject: write a new html page
Message-Id: <01bc736e$eb18d040$74053cc3@mallordp60>

i am new and you may think i am stupid

please give a bit of code to for a cgi file that creates a new page in the
same directory.

i can write a page on the fly but it's not saved

please

yours

 david



------------------------------

Date: 7 Jun 97 18:21:17 GMT
From: "DAVID GILMARTIN" <surgery@powernet.co.uk>
Subject: write a new htmp page
Message-Id: <01bc736f$7d80fa20$74053cc3@mallordp60>

i am new and you may think i am stupid

please give a bit of code to for a cgi file that creates a new page in the
same directory.

i can write a page on the fly but it's not saved

please

yours

 david



------------------------------

Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 586
*************************************

home help back first fref pref prev next nref lref last post