Re: Read /etc/shadow...

2001-10-15 Thread RaFaL Pocztarski
Hengky Stevanus wrote: > does anybody can help me... > the script below has been change 'chown root.root checklogin.pl' > > ## Start Script ### > $passwdfile = "/etc/shadow"; > open (PASSWD, $passwdfile) or exit 1; # Always exit when we running not as root > (...) > > when i'm running as root it'

Re: to activate URL

2001-10-15 Thread RaFaL Pocztarski
Sunthari wrote: > However, how do I activate the URL so that user can > click on the link and surf. I have tried the following > but it doesn't work . > > $urlresult=$results ->url; > print $q->a({href=>$urlresult},); >OR > print $q->a({href=>$results->url,"\n"

Re: flock()

2001-10-15 Thread RaFaL Pocztarski
Stephan Tinnemeyer wrote: > What will happen when a script crashes immediately after locking a file > (exclusively) with Perl's flock() function? If the process is killed then all locks are released (in Linux and AFAIK 4.2BSD where flock comes from, so every system with BSD-compatible flock shou

to activate URL

2001-10-15 Thread Sunthari
Dear List, I have a simple question here.I have extracted and displayed the URL using WWW-Search Module. The output are displayed for the follows: print $results->url,"\n"; print $q->br; print $results->title,"\n"; print $q->br; print $results->descr

to activate URL

2001-10-15 Thread Sunthari
Dear List, I have a simple question here.I have extracted and displayed the URL using WWW-Search Module. The output are displayed for the follows: print $results->url,"\n"; print $q->br; print $results->title,"\n"; print $q->br; print $results->descr

Re: (simple) cgi.pm question

2001-10-15 Thread Shannon Murdoch
So the script halves in size and now becomes: --- #!/usr/bin/perl -w use CGI qw(:standard); my $cgi = new CGI; my %params = $cgi->Vars; open(COUNTER,"entrycount.txt"); while(){ $entrynumber = $_; ###get previous entry number last; } close(COUNTER); op

extract concordance line s from HTML file

2001-10-15 Thread Sunthari
Hi, Can anyone help me with this codes ? I have tried extracting HTML to plain text and then use a pattern matching to extract the concordance lines. Really hope someone can show what's wrong with the attached code. Thanks in advance, #!usr\perl\bin -w use strict; use HTML::FormatText; use

Re: (simple) cgi.pm question

2001-10-15 Thread Shannon Murdoch
Thanks Brett, that's very handy to know! Cheers, -Shannon > From: "Brett W. McCoy" <[EMAIL PROTECTED]> > Date: Mon, 15 Oct 2001 23:53:56 -0400 (EDT) > To: Shannon Murdoch <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Subject: Re: (simple) cgi.pm question > > On Tue, 16 Oct 2001, Shannon Murdo

Re: (simple) cgi.pm question

2001-10-15 Thread Brett W. McCoy
On Tue, 16 Oct 2001, Shannon Murdoch wrote: > So far my script puts every form item in to it's own variable, and calls > upon that variable when it is writing the tab-delimited file (which will be > used in Exel or SPSS etc for data analysis. > > Is there an easier way to do this than I have? Yo

Upload problems

2001-10-15 Thread cris r
Hello , I've seen a lot of file upload problems on this list so thought id add my own! Ive got a upload script that seems to start uploading the specified file ok, but unless its a text file or small binary file it seems to timeout. I notice that the file is sitting in /var/tmp/ under some random

Re: Replacing carriage returns in a variable

2001-10-15 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Guy Tubbs) wrote: > but it does the same thing, i.e. I get: > > Line1 > Line2 > > What I need is: > > Line1Line2 > > Do you know how to get rid of the returns altogether? s/\015\012|\015|\012//g; -- Scott R. Godin| e-mai

(simple) cgi.pm question

2001-10-15 Thread Shannon Murdoch
Hi all, I have a small question regarding the processing of variables that come to my script via the web (using the cgi.pm module to parse and access item elements). I have created an online form for my father's doctoral research to process the answers he's received as he gets them. The form ret

Re: Generating a Thumbnail on-the-fly

2001-10-15 Thread Randal L. Schwartz
> "Scott" == Scott Heckel <[EMAIL PROTECTED]> writes: Scott> I'm looking for some help. I need to know how to generate a Scott> thumbnail on the fly. Flys don't have thumbs. :) Scott> Also, I was wondering, does that take an excessive amount of Scott> processing time to do? Because I'll b

Generating a Thumbnail on-the-fly

2001-10-15 Thread Scott Heckel
I'm looking for some help. I need to know how to generate a thumbnail on the fly. Also, I was wondering, does that take an excessive amount of processing time to do? Because I'll be doing it to between 5-25 pictures at a time. Thanks for any help. - Scott

Error: Pseudo-terminal will not be allocated because stdin is not a terminal.

2001-10-15 Thread Chuck
Executing ssh from within a cgi. I am having a hell of a time getting something to work; I have some code similiar to this: my $cmd = "/bin/ssh -l cci $host \"df -b | grep root | grep -v grep\""; @results = `$cmd`; Here is what the apache logs says: Prototype mismatch: sub Apache::ROOT::Dept

Re: Checking if file starts with X or Y

2001-10-15 Thread _brian_d_foy
In article <012301c155a0$8ada3890$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Chuck) wrote: > my $dh = DirHandle->new($dir); > return sort >grep { } >map { "$dir/$_" } >grep { !/^\./} >$dh->read(); > Wher

Checking if file starts with X or Y

2001-10-15 Thread Chuck
I have this function: sub getDIRcontents { my $dir = shift; my $dh = DirHandle->new($dir); return sort grep { } map { "$dir/$_" } grep { !/^\./} $dh->read(); } Where you see the XXX's in the

Re: Docs

2001-10-15 Thread Lisa Nyman
> > Where's a good place to find documentation in HTML of the CGI and DBI > > modules? CGI: http://stein.cshl.org/WWW/CGI/ DBI: http://dbi.symbolstone.org/index.html Lisa Wolfisch Nyman <[EMAIL PROTECTED]> IT Warrior Princess "Life is too short to wear ugly underwear." Get the facts at htt

Re: Docs

2001-10-15 Thread Curtis Poe
--- Camilo Gonzalez <[EMAIL PROTECTED]> wrote: > Where's a good place to find documentation in HTML of the CGI and DBI > modules? > > if ( $Camilo_Gonzalez && $Web_Developer ) { > Taylor Johnson Associates; > [EMAIL PROTECTED] ; > www.taylorjohnson.com

Re: Docs

2001-10-15 Thread Michael D. Risser
On Monday 15 October 2001 12:58 pm, Camilo Gonzalez wrote: > Where's a good place to find documentation in HTML of the CGI and DBI > modules? > > if ( $Camilo_Gonzalez && $Web_Developer ) { > Taylor Johnson Associates; > [EMAIL PROTECTED] ; > www.taylorjoh

Docs

2001-10-15 Thread Camilo Gonzalez
Where's a good place to find documentation in HTML of the CGI and DBI modules? if ( $Camilo_Gonzalez && $Web_Developer ) { Taylor Johnson Associates; [EMAIL PROTECTED] ; www.taylorjohnson.com ; }

STOP POSTING CUSS WORDS!

2001-10-15 Thread Lance Murray
Hello: I believe in free speech, etc. However, broadcasting posts with expletives to crowds of people you don't know is bad net-etiquette. I would appreciate it if posts would focus on the issue, and we all reserve major/minor cussing for private communications. I for one will boycott and no

Re: ultimate stupidity

2001-10-15 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > In a message dated 10/8/01 12:06:09 PM Eastern Daylight Time, > [EMAIL PROTECTED] writes: > You know, there's another way to avoid that mistake if you're willing to > change your style a little bit. In all logical tests, put the varia