Re: Installing DBD::mysql??

2008-04-18 Thread Josh Miller
em with yum, you might issue the following command: yum install mysql-devel HTH, Josh Miller, RHCE -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Sending HTML file as mail from mail command (mail -s )

2005-10-13 Thread Josh Brown
Mazhar wrote: Hi Folks, i have a requirement where in i need to send alerts to a set of users for which i have developed a script and it is working fine. For the body of the mail i am writing into a text file everytime and i am sending across using the command, cat "textfilename" | mail

Re: input web page question

2005-10-13 Thread Josh Brown
Luinrandir wrote: ok this is the code i have so far there it is... since i don't know how to call/capture/open the web page and get the HTML to a variable, there is not much I can do. Once I get the HTML into a var.. i can do the rest. as to moduals.. i barly know perl.. much less modu

Re: Using the module HTTP::Request

2005-10-01 Thread Josh Brown
Hello All, I am trying to use the module HTTP::Request. I tried to use the code given in perldoc HTTP::Request Here is my code == #!/usr/bin/perl -w use strict; require HTTP::Request; require LWP::UserAgent; my ($request,$response,$ua); $ua = LWP::UserAgent->new; $request = H

Counting Multiple lines of data with a unique column of information

2005-03-08 Thread Wilson, Josh --- Systems Analyst --- GO
I have a scenario in which palettes are weighed prior to delivery and then that data is submitted to a server. Once the data is transferred, I have to parse a batch file and strip out information for each shipment number and format it for print. The problem is that one shipment might have more

Foreach Code Issue

2005-03-01 Thread Wilson, Josh --- Systems Analyst --- GO
All, I'm trying to determine what is wrong with this script. Here is what I'm trying to do: 1.) Export the output of the following command to a file located at c:\perl\bin\log\accessreport.log Global "Domain Admins" ARFW > c:\perl\bin\accessreport.log 2.) For each line of informati

Re: print command help

2003-07-22 Thread Josh Corbalis
> I'm writing a webmin module and I'm trying to add a search function > in right now but after I search for it and try to display the output > it has a problem with the way the output is formatted. > > print "searchtest<10>"; will print searchtest<10> > print "searchtest< gimp><10>"; will print

Re: print command help

2003-07-22 Thread Josh Corbalis
-- Original Message --- From: "LI NGOK LAM" <[EMAIL PROTECTED]> To: "Josh Corbalis" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Sent: Wed, 23 Jul 2003 02:52:16 +0800 Subject: Re: print command help > ----- Original Message - > Fr

print command help

2003-07-22 Thread Josh Corbalis
I'm writing a webmin module and I'm trying to add a search function in right now but after I search for it and try to display the output it has a problem with the way the output is formatted. print "searchtest<10>"; will print searchtest<10> print "searchtest< gimp><10>"; will print searchtest< gi

needing help with the or, || operators

2003-07-16 Thread Josh Corbalis
I've been coding some basic programs learning perl and I'm having some problems with the or operators. Here are a couple coding samples if anyone knows what I'm doing wrong with this please tell me. #!/usr/bin/perl $gimp=; chomp ($gimp); if ($gimp eq "gimp" || "gimps") { print "working"; }

Re: Access DB

2003-06-17 Thread Josh Berkus
Access Databases with perl? Look up "MDB Tools" on Freshmeat.net -- -Josh Berkus Aglio Database Solutions San Francisco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SQL vs MySql?

2003-06-10 Thread Josh Berkus
of advanced or extended SQL if you knew the particular database, or experiencing horrible performance becuase of "standard" queries that hit a particular database's worst performance areas. "Database Independance" is a design strategy with specific and substantial tr

Re: SQL vs MySql?

2003-06-09 Thread Josh Berkus
n introductory book and has some other problems, but does do a good job of comparing MySQL, MSSQL, PostgreSQL, and Oracle on a command-by-commmand basis. -- Josh Berkus Aglio Database Solutions San Francisco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl predefined variables

2003-06-06 Thread Josh Berkus
ssible to grasp without a tutorial; I recommend the "Llama Book" othewise known as "Learning Perl", which spends 3.2 chapters on regular expression handling. (PS. Please pardon the crude regular expression and any syntax errors) -- -Josh Berkus Aglio Database Solutions San

Re: Appending to beginning of file?

2003-06-05 Thread Josh Berkus
James, > Tie::File can be retrieved off of the CPAN for earlier versions of Perl > where is wasn't standard, if you can install modules. Yeah. Sadly, it's a vendor system :-( I can't install anything. Happily, copying file content is very fast, even with 40,727 lines in

Re: Appending to beginning of file?

2003-06-05 Thread Josh Berkus
#x27;m not :-( So I'll just transfer the file from one to another. Thanks again. -- -Josh Berkus Aglio Database Solutions San Francisco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Appending to beginning of file?

2003-06-05 Thread Josh Berkus
nd an easy way to do this. Pointers to online docs are fine with me. -- -Josh Berkus Aglio Database Solutions San Francisco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Permission Problems

2002-09-30 Thread Josh
To clarify in my earlier posting, the part where I say, I have played with chown but the fact is "nobody" can't chown a file that belongs to "root". For grins I did: chown nobody:nobody ./fooness.cfg chmod 666 ./fooness.cfg I meant that I issued those commands from the command line. So

Funkyness about escaping an @

2002-09-25 Thread Josh
The error message is as follows In string, @63 now must be written as \@63 at -e line 1, near "#foo-bar Target[789]: 1.3.6.1.2.1.10.32.2.1.7.57.789&1.3.6.1.2.1.10.32.2.1.9.57.789:SNMPSTRING@IP" Execution of -e aborted due to compilation errors. The code is as follows, but well, the @ is escaped s

Help handling text files.

2002-05-29 Thread Josh
unt to 100 hours, i need to figure out how to script it so that it replaces the number with the new one..know what i mean? Josh

Modifying text in a dat file

2002-05-15 Thread Josh
Hey guys.. I wrote a script that writes to a dat file with the following username:plan: .. example test:20: they have 20 hours of 'dialup' access. If say the user "test" calls and wants to upgrade their plan to 50 hours (our next plan) how would i write to the dat file and just replace the

Re: DBI

2002-01-06 Thread josh
t people will Never Forget > how you made them feel. > > < Any suggestion are welcome to me > > __ > -- - josh N8MSO 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E~. .~ Tk Open Systems =}ooO--U--Ooo

modules and namespaces

2001-10-21 Thread josh hoblitt
I have a group of functions that are dependant on several global variables (yes I know tightly coupled functions are bad). I would like to split these off into a module but as far as I know that require a) explicitly declaring the name space of the variable or b) passing them into the module nam

Warnings with strict and POSIX

2001-10-18 Thread josh hoblitt
I'm not sure exactly whats going on here. It seems the combination of strict and POSIX ":sys_wait_h" is fine... but just POSIX seems to stop the strict bareword warnings. Any idea whats going on here? (exporter wierdness?) #!/usr/bin/perl -w use POSIX; #use POSIX ":sys_wait_h"; use strict; sy

IO::Socket Latency

2001-10-04 Thread josh hoblitt
I've working on a small webserver that uses only core perl modules. The design is similar to apache prevous to 2.0. Anyways in some simple load testing I've noticed the the connection latency is ~3.3msec under perl and ~0.7msec for apache. Since these are both on the same host and both are simp

regex question

2001-07-04 Thread Josh
ut, $spool, $to, '', $relay); } else { syslog('info', "Error: no match, line " . __LINE__ ); return 'ERROR'; ==== -- -

non-greedy *

2001-06-13 Thread Josh
Hi all, I'm reading Mastering Regular Expressions and it discusses a non-greedy version of star. can someone explain how to write this non-greedy version of star. (i.e. how does it differ than just *) -- - josh 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E~. .~ Tk

parsing maillog

2001-06-04 Thread Josh
Hi all, I've searched the perl FAQs and havent found the what im looking for. I want to read parts of /var/log/maillog (like from: and to:) into a hash inorder to generate mail statistics afterwards. can someone tell me where i can read docs on how to do this? -- - josh 20A8