RE: security in perl

2001-10-12 Thread Gunther Birznieks
At 02:29 AM 10/12/2001, Curtis Poe wrote: >--- Wagner Garcia Campagner <[EMAIL PROTECTED]> wrote: > > > > This site doesn't need so much security so I'm not worryed if someone is > > using a sniffer... > >Wagner, > >That is begging for trouble. My apologies in advance for the rather >serious ton

Re: Getting data from multiple check boxes

2001-10-12 Thread Chuck
Hey thanks. I had tried that initially but it did not work. I must have had something else wrong as well, it is working now. Thanks again. CC - Original Message - From: "Curtis Poe" <[EMAIL PROTECTED]> To: "Chuck" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 12, 2001 3:

Re: Getting data from multiple check boxes

2001-10-12 Thread Curtis Poe
--- Chuck <[EMAIL PROTECTED]> wrote: > > How to a grab data from a multiple checkbox type scenario. > > Ex: > > Say I have: > > > > > I then do this: (use CGI.pm for this example) > > my $selections = $q->param("x"); > print "$selections\n"; > > It only prints the last checkbox check, not

Getting data from multiple check boxes

2001-10-12 Thread Chuck
How to a grab data from a multiple checkbox type scenario. Ex: Say I have: I then do this: (use CGI.pm for this example) my $selections = $q->param("x"); print "$selections\n"; It only prints the last checkbox check, not all of the checked boxes. Is there a trick around this? Thanks, CC

Re: How to change shell environment by cgi-file?

2001-10-12 Thread Qi zhang
How can i have this permission to test this? What did you mean the permission? On Fri, 12 Oct 2001, Brett W. McCoy wrote: > On Fri, 12 Oct 2001, Qi zhang wrote: > > > Thanks Brett for your reply but if i run my script under unix shell as > > " perl my-script-file" it works well . > > If i call

Re: How to change shell environment by cgi-file?

2001-10-12 Thread Brett W. McCoy
On Fri, 12 Oct 2001, Qi zhang wrote: > Thanks Brett for your reply but if i run my script under unix shell as > " perl my-script-file" it works well . > If i call my script online through apache server it does not perform my > C-file well. Why? The apache cgi director is set already. Possible t

Re: How to change shell environment by cgi-file?

2001-10-12 Thread Qi zhang
Hi, Thanks Brett for your reply but if i run my script under unix shell as " perl my-script-file" it works well . If i call my script online through apache server it does not perform my C-file well. Why? The apache cgi director is set already. Thankx On Fri, 12 Oct 2001, Qi zhang wrote: >

Re: How to change shell environment by cgi-file?

2001-10-12 Thread Brett W. McCoy
On Fri, 12 Oct 2001, Qi zhang wrote: > I am using bash but my C file is under C-shell. How could I change the > bash to shell by perl script file? > system ('csh'); > system ('./my-file'); > system ('exit'); > does above list work? It shouldn't matter, if your C-shell script has a proper s

How to change shell environment by cgi-file?

2001-10-12 Thread Qi zhang
Hi, I am using bash but my C file is under C-shell. How could I change the bash to shell by perl script file? system ('csh'); system ('./my-file'); system ('exit'); does above list work? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Format interger printing, MORE INFO

2001-10-12 Thread Brett W. McCoy
On Fri, 12 Oct 2001, Chuck wrote: > It is now printing the number as a negative: > print "\n"; > printf "%15d bytes free in $phost:/var/tmp\n", $freespace; > > Result: > -48288 bytes free in smh4:/var/tmp Your integer is too big to be handled as an integer. :-) Use %15.f for your format

Re: Format interger printing, MORE INFO

2001-10-12 Thread Brett W. McCoy
On Fri, 12 Oct 2001, Chuck wrote: > Oh my god. *BONK*' > > You are correct, this is no doubt the dumbest mistake I have ever made. Bah, we've all been there. It's one of the best ways to learn: "That which does not kill us makes us stronger." :-) -- Brett

Re: Format interger printing, MORE INFO

2001-10-12 Thread Chuck
Next problem: It is now printing the number as a negative: print "\n"; printf "%15d bytes free in $phost:/var/tmp\n", $freespace; Result: -48288 bytes free in smh4:/var/tmp Any ideas? Thanks, CC - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Brett W. McC

Re: Format interger printing, MORE INFO

2001-10-12 Thread Chuck
Oh my god. *BONK*' You are correct, this is no doubt the dumbest mistake I have ever made. Thanks, CC - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Brett W. McCoy'" <[EMAIL PROTECTED]>; "Chuck" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 12,

Re: Format interger printing

2001-10-12 Thread Chuck
Perl 5.6.0 on SuSE 7.2. Let me post more info from my script: my $freespacecmd = "/usr/bin/ssh -l cci $phost \"/bin/df -b | /bin/grep root | /bin/grep -v grep \""; my $tmpargs = `$freespacecmd`; my @tmpfreespace = split(/\s+/, $tmpargs); my $sitefreespace = int ($tmpfreespace[4]); my $freespace =

RE: Format interger printing, MORE INFO

2001-10-12 Thread Bob Showalter
> -Original Message- > From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 12, 2001 12:17 AM > To: Chuck > Cc: Vinicius Jose Latorre; [EMAIL PROTECTED] > Subject: Re: Format interger printing, MORE INFO > > > On Thu, 11 Oct 2001, Chuck wrote: > > > Here is a snippet:

Re: Browser Redirection

2001-10-12 Thread Carl Franks
I know, I just cut the code right back for clarity before posting it (maybe silly thing to do?) Thanks carl > if (condition) { > print "Location:page.html\n\n"; > } else { > print "Content-type: text/html\n\n"; > print "...html..."; > } > } BTW, for a Location header, you should an absolu

Re: Browser Redirection

2001-10-12 Thread Brett W. McCoy
On Fri, 12 Oct 2001, Carl Franks wrote: > if (condition) { > print "Location:page.html\n\n"; > } else { > print "Content-type: text/html\n\n"; > print "...html..."; > } > } BTW, for a Location header, you should an absolute URL and not a relative URL, even if it's on the same server as the

Re: Browser Redirection

2001-10-12 Thread Carl Franks
Thanks everyone who replied, What I was doing was quite simple, and I know what was going wrong. I WAS using... print "Content-type: text/html\n\n"; if (condition) { print "Location:page.html\n\n"; } else { print "...html..."; } } Whereas I SHOULD have used... if (condition) { print "Loca

Re: Read /etc/shadow...

2001-10-12 Thread Hengky Stevanus
hi all, i'm reading at cpan.org using a module CfgTie::TieShadow how to use it...? i'm newbie here... what should i add at the top of a script before i can use the CfgTie::TieShadow thx > Hello hengky, > > Do you realy need the password ot the user ? In your script, you only > check on the