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
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
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
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
;
> 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
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
;[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-
>
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
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
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]
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]
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:
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
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
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
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
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
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
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
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
}
Does that make any sense at all? Can someone tell me how I'd do that in
PERL?
Thanks,
Chuck Mayo
= '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
, 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
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
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
25 matches
Mail list logo