Re: How to set LD_LIBRARY_PATH

2010-05-29 Thread Oscar Gomez
create shell script, first set enviroment variables Oracle then execute script perl jonathan.leff...@gmail.com escribió: The dynamic loader read LD_LIBRARY_PATH when (before?) Perl gets going. AFAIK, it doesn't reread it, so changing it in Perl code is too late unless you set it and exec

Re: Search in LDAP using Perl

2009-08-07 Thread Juan Pablo Feria Gomez
> I m working on Net::LDAP module in perl to manage ldap database, > > but i dont know how can i get all the uid's and names of the groups, > i have try the Search function of Net::LDAP but still not able to get it, > Alpesh, take a look on http://www.linuxjournal.com/article/7086 Is your LDAP di

Re: expect error

2008-10-21 Thread Juan Pablo Feria Gomez
> use strict; > use warnings; > use Expect; > use IO::Tty; > > $host = "192.168.1.72"; > $passwd= "xyz"; > $user = "xyz"; > > $t= "file.txt"; > my $connect = Expect->spawn("scp $t [EMAIL PROTECTED]:/work/$user/"); > $connect->expect(30,"\s") ||die "junk1"; > print $connect $passwd."\n"; Do you

Re: using ssh to do remote audit of machines

2008-09-10 Thread Juan Pablo Feria Gomez
>If you really need to do a ssh operation in Perl, see "perldoc Net::SSH". >For database oepration, see "perldoc DBI". Expect-perl can be another useful tool to record each program response... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://

Re: Perl Expect help

2008-05-06 Thread Juan Pablo Feria Gomez
Here's a tiny code to get the prompt, hope it helps $actualprompt=''; $rootexpect->send("\n"); my $shpromvrfy = $rootexpect->expect(750,'#','>','$'); my $match=$rootexpect->match(); my @outp = split /\n/, $rootexpect->exp_before(); $actualprompt= "$o

Re: sourcing one perl file from another

2007-10-22 Thread Juan Pablo Feria Gomez
Great "howto" Jeff... Thanks :) On 10/22/07, Jeff Pang <[EMAIL PROTECTED]> wrote: > There are some ways to 'source' a config file like under unix shell. > Just show 3 ways below: > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.per

Re: How to install perl Expect module under cygwin

2007-09-23 Thread Juan Pablo Feria Gomez
Try installing manually IO::Pty before... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: perl script to modify LDAP.

2007-07-26 Thread Juan Pablo Feria Gomez
For multiple users, you need to 1. Open the file with the users names/password 2. Read that file 3. loop through the above command So I will let you tidy this up open (my $USERS,"<", "/file/of/users-password") or die ..; while (<$USERS>){ chomp; my ($user, $password) = split; #(I guess)

Running perl program at startup

2007-06-07 Thread Juan Pablo Feria Gomez
Hi all, I need to start a perl daemon at an BSD's startup (rc.local, not interactive), i found the way to run the script as a daemon, but i want: a) Send all the output to an tty , say, go to tty6 (ctrl+alt+F6) and see the output of my perl daemon b) Interact (if possible) on that TTY with the d

Help parsing a txt by blocks...

2006-10-04 Thread Juan Pablo Feria Gomez
I want to parse a big cisco configuration on TXT and create arrays per each configuration block... The script will know when each section begins/end with the "!" character I'm stuck.. :( Can someone give me any pointers on the documentation? Thanks in advance... Here is a fragment of a config

Re: Extract digits from string

2006-09-08 Thread Juan Pablo Feria Gomez
> my @array = $data =~ /\((\d+)\)/g; And what does this means ^^ ? is not an ^, is / next to a \(/\) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: export script problem

2006-05-29 Thread Gomez, Juan
em On Fri, May 26, 2006 at 07:32:57AM -0500, Gomez, Juan wrote: > > do you realized this is a perl list? Maybe he wants to do it in Perl. Of course, it's pretty hard to tell from that email. -- Chad Perrin [ CCD CopyWrite | http://ccd.apo

RE: export script problem

2006-05-26 Thread Gomez, Juan
graeme do you realized this is a perl list? -Original Message- From: "Graeme McLaren" <[EMAIL PROTECTED]> Sent: 05/22/2006 2:09:12 PM To: "beginners@perl.org" Subject: export script problem Hi all, I need to export data from one database table to another. I als

RE: Whimsical Question

2006-03-29 Thread Gomez, Juan
I am with Ryan been working with Perl for some months now And I have never found a name for '$_', some of my friends They just call it scalar but that's too general for it If someone knows please tell Thanks Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Be

RE: Large Uploads

2006-01-19 Thread Gomez, Juan
I think you need to unsubscribe >From here see if in one of your emails Has a link saying unsubscribe Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thurs

One Question

2006-01-09 Thread Gomez, Juan
Good Morning all!!!     I have working on several shell scripts using KSH but i like to know is there can be a way to use Perl/tk to make them run like a inside of a menu?     thanks guys         Armando Gomez Guajardo Process EngineerWork Ph   956 547 6438 Beeper    956 768 4070  

one odd question

2005-12-16 Thread Gomez, Juan
f the capabilties of Perl   thank you           Armando Gomez Guajardo Process EngineerWork Ph   956 547 6438 Beeper    956 768 4070  

RE: Help running some scripts

2005-12-10 Thread Gomez, Juan
Hi In VB is there a way to execute a perl script ? Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: grimR [mailto:[EMAIL PROTECTED] Sent: Saturday, December 10, 2005 12:01 AM To: beginners@perl.org Subject: Re: Help

Help running some scripts

2005-12-10 Thread Gomez, Juan
VB6 and I need to run the scripts from VB6 and display the Data in the app using VB6, and to tell you the Truth I have no idea on how to do that. Can you be so kind and help me ? Someone? Thank you for your time Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438

RE: Hi All

2005-11-16 Thread Gomez, Juan
But why no one has done something to make Perldoc more helpful for all? Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Dennis G. Wicks [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 8:05 AM To

RE: Need Some Guidance

2005-10-19 Thread Gomez, Juan
Hi I am learning too and for me Learning Perl has help a lot My opinion is to start with Learning Perl and work you way to Programming Perl Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Gladstone Daniel - dglads

RE: Running Perl on PC

2005-10-17 Thread Gomez, Juan
as both Win and Unix For active perl install Active perl does most of the instalation don't worry Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October

RE: Re: ENV(Y)?

2005-10-14 Thread Gomez, Juan
Tom to unsubscribe send a blank email to these address [EMAIL PROTECTED] Cheers Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 14, 2005 12:28 PM To

RE: Perl for Windows xp

2005-10-14 Thread Gomez, Juan
http://www.activestate.com/store/languages/register.plex?id=ActivePerl Try here friend Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Jenny Chen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 13, 2005 6:11 PM To

RE: WELCOME to beginners@perl.org

2005-09-28 Thread Gomez, Juan
Just something for to start looking for info on the module http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2602/ParseExcel.pm Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Chris Devers [mailto:[EMAIL

RE: Camel book relevance

2005-09-26 Thread Gomez, Juan
Thanks for the info I for now on only Perl :o) Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 1:15 AM To: Gomez, Juan Cc: Gonzi

RE: Camel book relevance

2005-09-25 Thread Gomez, Juan
Hi ! I am a beginner too and can tell you this I use PERL a lot, I work with a lot of data and PERL helps me to manage all the data, I have started doing some CGI programming with it and it is great now all the text mode information I can put it in a web page for me it has work i think it wo

RE: Date in perl

2005-08-29 Thread Gomez, Juan
Thanks Luke now I understand how to do it thanks -Original Message- From: Bakken, Luke [mailto:[EMAIL PROTECTED] Sent: Saturday, August 27, 2005 10:22 AM To: Gomez, Juan; beginners@perl.org Subject: RE: Date in perl Hi all I have a problem need to work with date I have a

Date in perl

2005-08-27 Thread Gomez, Juan
Hi all     I have a problem need to work with date   I have a input like these :   20050829 and I need to change it to something like this : Aug 29 2005   but it still eludes me how to do that   can anyone help me please?           thanks     Armando

Hash example

2005-07-11 Thread Gomez, Juan
  Hi   I been hearing about hash on perl can someone tell me a little bit about that and if you could add a example it would be very nice from you thank you      

Need help

2005-03-12 Thread Gomez, Juan
Hello !!! I have a problem I need to do a Perl script that do the following (and frankly I have no clue how) I have a text file that contains 7 fields Like this Book1;document11;document12;document13;document14;document15;document16 Book2;document21;document22;document23;document24;document25

RE: Executing perl code on the command line

2005-03-12 Thread Gomez, Juan
2:15 PM To: Perl Beginners List Cc: Gomez, Juan Subject: Re: Executing perl code on the command line Hi, perl -e "print qq(Hello\n)" works fine for me. What does not work is : perl -e 'print qq(Hello\n)' - Original Message - From: "Gomez, Juan" <[EMAIL

RE: Executing perl code on the command line

2005-03-12 Thread Gomez, Juan
Hi !!! For me the line work here: C:\>perl -e "print qq(Hello\n)" Hello C:\>perl -e"print qq(Hello\n)" Hello Can it be that you type it wrong? Or check your perl version C:\>perl -v -Original Message- From: renard [mailto:[EMAIL PROTECTED] Sent: Saturday, March 12, 2005 9:24 AM

RE: Re: Perl versus EXPECT(tcl)

2005-02-12 Thread Gomez, Juan
Hi Xiaofang I don’t think is posible you see pty's are only for unix That’s what I remember and that’s why it crash Let me get some more info and I send it to you Have a good day -Original Message- From: Xiaofang Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005

RE: Storing large records in a database

2005-02-10 Thread Gomez, Juan
I was going to say the same thing is the amount is BIG better MySQL But if only going to be something lite well use the SQLite but watch it is not a real database engine is a library But I guess Chris told you that :) I prefer MySQL even if a simple management of a database but is just me

RE: Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
... Gonzalo Gómez -Mensaje original- De: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 07 de Febrero de 2005 11:52 a.m. Para: beginners@perl.org Asunto: RE: Filter Regular Expressions Gomez, Gonzalo <[EMAIL PROTECTED]> wrote: : Hi, I want to filter text using r

RE: Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
--- De: Ezra Taylor [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 07 de Febrero de 2005 11:19 a.m. Para: Gomez, Gonzalo CC: beginners@perl.org Asunto: Re: Filter Regular Expressions Gomez, Gonzalo wrote: >Hi, I want to filter text using regular expressions, but i don't know how to >find

Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
Hi, I want to filter text using regular expressions, but i don't know how to find in a file a string like this , or , or , Etc. I try to use the little script bellow with a count for the word but this scrit doesn't work if i put symbols like / , \ , > , < (Reserved Symbols). Anyone can help

RE: remove me from the list

2005-01-28 Thread Gomez, Juan
Hello ! Just email this [EMAIL PROTECTED] You will be miss :o) -Original Message- From: Richard Wood [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 11:52 AM To: beginners perl Subject: remove me from the list Greetings all, How do I go about removing my email addre

how to

2005-01-15 Thread Gomez, Juan
Good day I am new to perl but I need a jump start to CGI so I have active perl 5.8.1 install in my pc Now a friend gave me a script that has a form and sends an email with the data Now in his pc its working fine but when I try it in my pc did not work Is there some documentation about h

Search Problems

2001-11-14 Thread Gomez
I am having a few problems with a search on a DAT file using perl with some embedded HTML. I want to search for a keyword and display the results in a certain format which I have done OK in perl, but I have to manually put the search keyword into the code, the only problem is that I cannot get p