Re: [Perl-unix-users] Works great on Windows but not in Unix

2006-06-16 Thread Anthony Ettinger
es.net ___ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html _

Re: [Perl-unix-users] crontab

2006-03-07 Thread Anthony Ettinger
Try search.cpan.org for "cron"On 6/9/04, Mundell, R. (Ronald) <[EMAIL PROTECTED] > wrote: Good Day All   Does anyone knows off a module or way to modify the crontab programmatically   Thank you,   Ronald Mundell   This email and any accompanying attachments may contain

Re: [Perl-unix-users] Help changing a password

2006-03-07 Thread Anthony Ettinger
On 6/24/04, Mundell, R. (Ronald) <[EMAIL PROTECTED]> wrote: Good Day All   I am trying to change a password in a Perl script. Does anyone know how to do this?   Eg.   passwd user1 Changing password for "user1" user1's Old password:  123456 user1's New password: abcde123 En

Re: [Perl-unix-users] Regular Expression Question

2006-03-03 Thread Anthony Ettinger
On 3/2/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > > > > If I have a pattern that appears mulitple times (but I don't know how many > times) in a string, how do I get at the matched text for each of the > matches? > > Made up example… > > $string = > 'ab23cdefgXX(3A5)XXhijkl23mnXX(3)XXopq432rsXX

Re: [Perl-unix-users] validating (restricting) hash values and keys

2006-03-02 Thread Anthony Ettinger
; > my $valid = '^(acc1|acc2|acc3)$'; > > while (my ($key, $value) = each %hash) { > > if ($key !~ /$valid/) { > print "Invalid Key: $key, "; > } else { > print "Valid Key: $key,

Re: [Perl-unix-users] Using variables in a library path

2006-02-28 Thread Anthony Ettinger
this > message, any attachments, and all copies and backups from your > computer. > > > ___ > Perl-Unix-Users mailing list > Perl-Unix-Users@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailma

Re: [Perl-unix-users] File Find

2006-02-23 Thread Anthony Ettinger
py or use it, or disclose > it to anyone else. If you received it in error please notify us immediately > and then destroy it. > > > ___ > Perl-Unix-Users mailing list > Perl-Unix-Users@listserv.ActiveState

Re: [Perl-unix-users] Data::Dumper and CSVs

2006-01-26 Thread Anthony Ettinger
you might look into DBD::CSVOn 1/26/06, Lasher, Brian <[EMAIL PROTECTED]> wrote: I love using Data::Dumper.  Was wondering if anyone knew of a similarmodule that will take a reference to any data structure (the wayData::Dumper does) and generate a CSV file for all the data.-brian Brian LasherBest P

Re: [Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Anthony Ettinger
there must be a UTF-8 html entity module on cpan?On 1/24/06, Carl Reynolds <[EMAIL PROTECTED] > wrote:I am receiving data for entry into a mysql database. The information comes to me in gzipped files and I'm using Compress::Zlib to uncompressthe file in perl. I'm running perl 5.8.5.The information

Re: [Perl-unix-users] running ssh commands remotely in Perl

2006-01-05 Thread Anthony Ettinger
Yes, ssh is the best way. I've decided to try Net::SSH::Perl.On 1/5/06, $Bill Luebkert <[EMAIL PROTECTED]> wrote: Anthony Ettinger wrote:> Any thoughts?>> I'm looking for a "best practices".>> Basically, i'm on foo.org <http://foo.org >, and

[Perl-unix-users] running ssh commands remotely in Perl

2006-01-04 Thread Anthony Ettinger
Any thoughts? I'm looking for a "best practices". Basically, i'm on foo.org, and need to automate ssh bar.org, and executea command or two, then copy the file from that server, then delete it. I'd also like to not use 3rd party mods as much as possible.-- Anthony EttingerSignature: http://chovy.

Re: [Perl-unix-users] perl -v and $] Give different versions?

2004-10-22 Thread Anthony Ettinger
That's one gnarly command to get version :-) --- Martin Moss <[EMAIL PROTECTED]> wrote: > Thanks Anthony, > > Thats one wild goose chase Headed off at the pass > ;-) > > Marty > > --- Anthony Ettinger <[EMAIL PROTECTED]> wrote: > > >

Re: [Perl-unix-users] perl -v and $] Give different versions?

2004-10-22 Thread Anthony Ettinger
> ___ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubsc

Re: [Perl-unix-users] Both sides of 'or' executing

2004-09-30 Thread Anthony Ettinger
x: sftp: In read loop, got 8192 offset 40960 > linux: sftp: Sent message SSH2_FXP_READ I:12 O:49152 > linux: sftp: Received reply T:103 I:12 > linux: sftp: In read loop, got 565 offset 49152 > linux: sftp: Sent message SSH2_FXP_READ I:13 O:49717 > linux: sftp: Received reply T:101 I:13 &

Re: [Perl-unix-users] Searching the entire string

2004-08-30 Thread Anthony Ettinger
; hk > Avadhani Subramanya > iojioqer > \opjth > Subramanya > I am Subramanya > I am here Subramanya > > Here I want the entire line and not just the string > entered by user, > till EOL(say Subramanya). > > Tha

Re: [Perl-unix-users] how can user change text in cgi ?

2004-08-25 Thread Anthony Ettinger
) /--< o // // Castle of Medieval Myth & > Magic http://www.todbe.com/ > -/-' /___/_<_http://dbecoll.tripod.com/ > (My Perl/Lakers stuff) > _______ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] >

Re: [Perl-unix-users] Odd problems from shell commands run via RPC service

2004-08-19 Thread Anthony Ettinger
> > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs = Anthony Ettinger Phone: (408) 656-2473 [EMAIL PROTECTED] http://www.apwebdesign.com

Re: [Perl-unix-users] help needed with array references

2004-07-08 Thread Anthony Ettinger
ate when > # working with fetchrow_arrayref. > > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: > http://listserv.ActiveState.com/mailman/mysubs > = Anthony Ettinger [EMAIL PROTECTED] http://www.

RE: [Perl-unix-users] List

2004-04-19 Thread Anthony Ettinger
956 547 6438 office > 956 768 4070 beeper > mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> Work email > mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > Home email > > > > > _______ > Perl-Unix-

Re: [Perl-unix-users] how to check remote path

2004-03-22 Thread Anthony Ettinger
d.edu/acc"; > > I like to check the change for all directories under > that path. How can I > open that path? > > > Thanks in advance! > > > Hong > > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTE

Re: [Perl-unix-users] Net::FTP question

2004-03-18 Thread Anthony Ettinger
in return the following : > ARRAY(0x2046a1a0) Try print "@{$_}\n"; = Anthony Ettinger [EMAIL PROTECTED] http://www.apwebdesign.com Instant Messengers: 1) yahoo im: apwebdesign 2) aol im: apwebdesignxl 3) msn im: [EMAIL PROTECTED] 4) icq im: 659139

Re: [Perl-unix-users] Greedy Matching

2004-03-18 Thread Anthony Ettinger
_ > Find what you are looking for with the Lycos Yellow > Pages > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED]

Re: [Perl-unix-users] Retrieving Perl hash values in javascript

2004-02-26 Thread Anthony Ettinger
__ > Find what you are looking for with the Lycos Yellow > Pages > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 > ___ > Perl-Unix-Users mailing list > [EMAIL

Re: [Perl-unix-users] Dynamic PDF Generation

2004-02-06 Thread Anthony Ettinger
can this be achieved > using perl > alone. > > Any more ways? > > Karthikeyan B > > > > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

[Perl-unix-users] perl poker game

2004-01-08 Thread Anthony Ettinger
ling again. Anyone have any ideas on a way to do this? ===== Anthony Ettinger [EMAIL PROTECTED] http://www.apwebdesign.com Instant Messengers: 1) yahoo im: apwebdesign 2) aol im: apwebdesignxl 3) msn im: [EMAIL PROTECTED] 4) icq im: 659139 __ Do you Yahoo!? Yaho

Re: [Perl-unix-users] Parallel Command Execution

2003-12-10 Thread Anthony Ettinger
l > execution module that I > can reference to create multiple PID's and then > manage each one to validate > success or failure of the command. > > Thoughts? > > -Wes > > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://list

Re: [Perl-unix-users] removing tabs

2003-08-30 Thread Anthony Ettinger
\t --- Johnno <[EMAIL PROTECTED]> wrote: > Hello All, > > what do i use to remove tabs... ie I use this to > remove linefeeds > > $line[$x] =~ s/\r//g; # remove linefeeds > > Many Thanks, >Johnno > ___ > Perl-Unix-Users ma

Re: [Perl-unix-users] perl 5.6.1 for solaris 8

2003-08-18 Thread Anthony Ettinger
85579 Neubiberg | Fax : > +49-89-45026-113 | > ++-+ > > > > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs = Anthony Ettinger [EMAIL PROT

Re: [Perl-unix-users] Unix login

2003-08-14 Thread Anthony Ettinger
AILIES za akcni cenu a získej 10 > cocek ZDARMA! > http://ad2.seznam.cz/redir.cgi?instance=56077%26url=http://www.cz.cibavision.com/ > > ___ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mys

Re: [Perl-unix-users] How to recurse through a directory and do something with each file

2003-08-04 Thread Anthony Ettinger
use File::Find; check cpan.org for example --- Subrahmanyam Vadlamani <[EMAIL PROTECTED]> wrote: > Hi: > > I would like to recurse through a directory and do > something with the files in the directory (and all > sub-directories). > > What is the most efficient way of doing this? What > are so

Re: [Perl-unix-users] running perl program

2003-07-31 Thread Anthony Ettinger
Try "%perl program.pl" at the command line if using the shebang line doesn't work. type "which perl" to get path.. #!/usr/bin/perl <- first line of script --- "Zhang, Lynne C [ITS]" <[EMAIL PROTECTED]> wrote: > Hi, > > My perl program has to be run as "perl program". > What should I do to mak

Re: [Perl-unix-users] weird module loading error...

2003-07-24 Thread Anthony Ettinger
I just figured out the problem, my 'modules' directory was not under the main htdocs directory...didn't think this mattered but apparently it does. --- Anthony Ettinger <[EMAIL PROTECTED]> wrote: > > --- $Bill Luebkert <[EMAIL PROTECTED]>

Re: [Perl-unix-users] weird module loading error...

2003-07-24 Thread Anthony Ettinger
--- $Bill Luebkert <[EMAIL PROTECTED]> wrote: > Anthony Ettinger wrote: > > > > > Yes, I did...like I said it works fine from the > > command line (no error displayed - the module is > > loaded properly), but chokes when I execute it > from > > th

Re: [Perl-unix-users] weird module loading error...

2003-07-24 Thread Anthony Ettinger
--- $Bill Luebkert <[EMAIL PROTECTED]> wrote: > Anthony Ettinger wrote: > > > works from the command line, but when I run the > cgi > > script on apache, I get the following message in > > STDERR: > > > > Can't locate HTML/Newsletter.pm

[Perl-unix-users] weird module loading error...

2003-07-24 Thread Anthony Ettinger
e end of script headers: /home/virtual/domain.com/www/cgi-bin/mailer.cgi At the top of my script I have: use lib "/home/ettinger/modules"; use HTML::Newsletter; works fine if I execute the script from the command line, but not in web server environment. any ideas? = Anthony

Re: [Perl-unix-users] Learning perl

2003-07-23 Thread Anthony Ettinger
doing the exercises and writing little scripts as exercises definitely helps. depends on what you want to use perl for. I like the CGI Programming book by O'Reillyand also Object Oriented Perl by Damian Conway, if you want to get into it. Personally, I think the Programming Perl book is too m

Re: [Perl-unix-users] Learning Perl.

2003-06-27 Thread Anthony Ettinger
_ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs = Anthony Ettinger [EMAIL PROTECTED] http://www.apwebdesign.com Instant Messengers: 1) yahoo im: apwebdesign 2) aol im: apwebdesignxl 3) msn im: [EMA

Re: [Perl-unix-users] MySql Update Error

2003-03-31 Thread Anthony Ettinger
Can you provide the lines that have your $statementHandler and sql code? --- "V. Rajaraman [Sys-Support]" <[EMAIL PROTECTED]> wrote: > > Hi All, > > I use DBI to update Mysql table, when i do that i > facing the below error. > What is the error ? > > Error : > > can't execute the query: DBI:

Re: [Perl-unix-users] MP3 Streaming vs. download

2003-03-28 Thread Anthony Ettinger
install the shoutcast.org server --- Roman 'Ra' Melihhov <[EMAIL PROTECTED]> wrote: > Any ideas for streaming MP3 file from the web > instead of allowing download? > > Thank you, > Roman. > - > The only things in life you regret, Are the risks > that you didn't take. > > ___

Re: [Perl-unix-users] (OT) Catchall DNS?

2003-03-20 Thread Anthony Ettinger
all I say ATTEMPTS to go to them - they get > the fun li'l dns error. > > Any clues on how to accomplish this like the domain > registrars? Thanks! > > - Steve > (RedHat 7.2 & Apache & Bind 9 - fyi) > > _______ &g

Re: [Perl-unix-users] How to captures a web pages in a variable

2003-02-26 Thread Anthony Ettinger
$response = sprintf " %s", $http_response->status_line; } else { $response = $http_response->content(); } return $response; } --- Anthony Ettinger <[EMAIL PROTECTED]> wrote: > > > > use LWP::UserAgent > use HTTP::Request >

Re: [Perl-unix-users] How to captures a web pages in a variable

2003-02-26 Thread Anthony Ettinger
use LWP::UserAgent use HTTP::Request $proxy = $url; #or just replace $proxy with $url. my $response = &httpRequest($proxy); sub httpRequest { my $proxy = shift; my $ua = LWP::UserAgent->new(timeout => 2); $ua->agent("Anti-War v2.0"); $ua->proxy('http', "http://

Re: [Perl-unix-users] Perl Login

2003-01-03 Thread Anthony Ettinger
It's my experience that you would have to verify the login for each request. This can be easily done by storing the username/password in a cookie, and then reading that cookie, and querying the database for correct user/pass combo on each request. If anyone knows of a better way, please let me kn

Re: [Perl-unix-users] Printing CGI WEB Pages

2003-01-03 Thread Anthony Ettinger
there are a number of alternatives. i recommend a template based system. Text::Template (easy to use) HTML::Template (conditionals, progrmatic structures) Template::Toolkit (heard it was AWESOME). or you can just print the html in your script... try something like this, so you won't have to backs