Easy way to get output from system()

2001-10-11 Thread Chuck
I have several CGI's that use system() to get various OS details. What is the most reliable way to glean this information after using this command: For example: #!/bin/perl system("ls -l /tmp") How can I get that data? Thanks, CC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Format interger printing

2001-10-11 Thread Chuck
Arg, I am going crazy. Ok, it has been a long time since I was kneee deep in perl, but why does this not work: printf "%-10d bytes", $x; It does not pad the output with spaces or anything. if x = 25 this is the result: 25 bytes I want it tobe: 25 bytes Anyone have any ideas. I jus

Re: Format interger printing

2001-10-11 Thread Chuck
Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 11, 2001 4:08 PM Subject: Re: Format interger printing > > Try: > >printf "%10d bytes", $x; > > > Vinicius > > -- Chuck <[EMAIL PROTECTED]> wrote: > > Arg, I am going crazy. Ok, it has be

Re: Format interger printing, MORE INFO

2001-10-11 Thread Chuck
ent: Thursday, October 11, 2001 4:08 PM Subject: Re: Format interger printing > > Try: > >printf "%10d bytes", $x; > > > Vinicius > > -- Chuck <[EMAIL PROTECTED]> wrote: > > Arg, I am going crazy. Ok, it has been a long time since I was

Re: Format interger printing

2001-10-12 Thread Chuck
; > I tried: > > #!/usr/bin/perl -w > my $x = 25; > printf "%-10d bytes\n", $x; > printf "%10d bytes\n", $x; > > The result is: > > 25 bytes > 25 bytes > > Could you give more information about your system (Perl ver

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

Re: Format interger printing, MORE INFO

2001-10-12 Thread Chuck
;[EMAIL PROTECTED]> To: "'Brett W. McCoy'" <[EMAIL PROTECTED]>; "Chuck" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 12, 2001 9:54 AM Subject: RE: Format interger printing, MORE INFO > > -Original Message- >

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

Checking if file starts with X or Y

2001-10-15 Thread Chuck
the XXX's in the line containig grep, I need a check for this: If the file starts with REL or WinCIS. I tried egrep { "^WiNCIS|^REL" } but it did not work. Any ideas. -Chuck -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2001-10-15 Thread Chuck
rting back to my own module did npt fix it. What am I missing? Is there another way to connect to the remote system and get this data? Thanks, Chuck -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2001-10-16 Thread Chuck
Dude, thanks a bunch. That module rocks. This provided soluitions to several other problems I had as well. Thanks man, Chuck - Original Message - From: "_brian_d_foy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 16, 2001 6:56 AM Subject: Re:

CPAN error, MD5 is not loaded

2001-10-16 Thread Chuck
I keep getting this error when installing modules via CPAN: #perl -MCPAN -e shell cpan> install Crypt::DSA::Key::SSH2 Can't locate object method "new" via package "MD5" (perhaps you forgot to load "MD5"?) at /usr/lib/perl5/5.6.1/CPAN.pm line 4212. It has done this for several modules now. I ju

Running perl script via sendmail

2001-10-19 Thread Chuck
x27;s home directory is /root/.ssh and root's ssh stuff is in /root/.ssh. Sendmail is running as root:root. Does anyone know why it is trying to create this directory? Is there a way I can explictly set a HOME variable in the perl script. Has anyone done anything similiar to this? Tha

OK Regexp people, need a little help.

2001-10-19 Thread Chuck
I need to grab an email address from an arbitrary string of text. The string will only have 1 '@' symbol. I need a regexp that will search for this symbol and return the whole word. It will appear like this: blah blah blah 12112 blah [EMAIL PROTECTED] blah some more text. I want to grab

Re: I want out, but I'm no idiot.

2001-10-22 Thread Chuck
Try faking a bounce back message. I did this years back on an obnoxious list I could not get off of. After several bounced messages, the mailling list software should auto-remove you. Of course, is the unsibscribe piece is not working, this might not be either. -CC - Original Message - F

Anyone get Crypt::IDEA installed on IRIX

2001-10-22 Thread Chuck
I am trying to use Net::SSH on an Irix system. Of course every flipping package it needs will not install. Right not I am stuck on Crypt::IDEA Here is what I get when I manually compile: domo:~/.cpan/build/Crypt-IDEA-1.01 #make cc -n32 -c -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1174,11

Net::SSH::Perl

2001-10-23 Thread Chuck
Ok perl gurus, I am using the Net::SSH::Perl module for remote system maintenance. Has anyone figured out a way to change the timeout value for the ssh connection. The only thing I found remotely close to this is the option, ConnectionAttempts, which is the number of tries to make per second, ho

Re: Shit!!!!!!!!

2001-10-10 Thread Chuck
Jeezzuuzz. This message assumes you are familiar with common GUI mail clients and can use one properly. (I know *GASP* this is a very large assumption) Okay goo-goo, here's how. aka Mailing List 101 Compose a new mail message by clicking the cute little "Create Mail" icon. In the To: field, cut

Re: How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-09-17 Thread Chuck Fox
and would require our decryption module to make sense of it. Again, the point is that, "secure" has to be defined for your particular circumstances. If it makes more sense for you to use the OS to protect passwords, then that is your "best" solution. Good Luck, Chuck [EMAIL P

Form field named as array elements

2003-11-14 Thread Mayo, Chuck
} Does that make any sense at all? Can someone tell me how I'd do that in PERL? Thanks, Chuck Mayo

RE: Form field named as array elements

2003-11-14 Thread Mayo, Chuck
= '41' UPDATE tablename SET answer = 'Still another sample question' WHERE id = '40' UPDATE tablename SET answer = 'Here's a "swell" performance question!' WHERE id = '44' > -Original Message- > From: Wi

Re: Beta Testing a Robot

2003-12-04 Thread Chuck Fox
, one may subscribe -- of this activity may also prove useful in the long run to the lurkers like myself. Thanks for the cool and interesting approach to getting an answer out to the questioner. Chuck [EMAIL PROTECTED] wrote: It was Wednesday, December 03, 2003 when Casey West took the soap box

Re: perl and the web

2001-06-06 Thread Chuck Ivy
On Wednesday, June 6, 2001, at 08:09 AM, Sally wrote: > I'd like some info on what perl can be used for in web applications > please, My first perl/web experiences were form handling... collecting data, writing to files. Registration forms and polls were among my first scripts. A natural exte

Seg Faults on SuSE 7.2

2001-10-09 Thread Chuck Carson
I just compiled mod_perl 1.26 and apache 1.3.20 on a SuSE 7.2 machine. Everything went fine, but now when I try and execute CGI stuff, I get this in the error.log: [Tue Oct 9 08:29:11 2001] [notice] Apache/1.3.20 (Unix) mod_perl/1.26 configured -- resuming normal operations [Tue Oct 9 08:29:16