Perl CGI: accessing a element value from the current form

2009-06-01 Thread Ravi Malghan
Hi: I have web page built using perl cgi. Generated page has the following element admin Within the perl script is there a way to access the value of the element userName and assign it to a variable? Something along the lines $currentUser = ; Thanks Ravi -- To unsubscribe, e

Perl DBI->Connect: how to detect a a lost connection

2008-07-20 Thread Ravi Malghan
7;t seem to work. How do I figure out if the $dbh connection has been lost within the while loop? Any suggestions. TIA Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Perl how to die without printing out a message?

2008-07-02 Thread Ravi Malghan
h-3.00$ processRemedySubmit.plĀ  DBI connect('dbname=data;host=hostA;port=5435;','postgres',...) failed: could not translate host name "hostA" to address: node name or service name not known at ./scripts/processRemedySubmit.pl line 32 Died at ./scripts/processRemedySub

Re: including LD_LIBRARY_PATH within a script

2008-06-25 Thread Ravi Malghan
ferent if your hosting use windows or linux. On Wed, Jun 25, 2008 at 1:47 PM, Ravi Malghan <[EMAIL PROTECTED]> wrote: > Hi: I have a script which runs fine when I run it from the shell prompt. But > when I run it from within another application, I get the following error > > C

including LD_LIBRARY_PATH within a script

2008-06-25 Thread Ravi Malghan
#x27;} = '/usr/local/lib:/opt/ibm/netcool/platform/solaris2/pgsql8/lib:/export/home/netcool/oracle/instantclient_10_2:/export/home/netcool/arsapi/lib'; Any suggestions? Thanks Ravi - Original Message From: Jeff Peng <[EMAIL PROTECTED]> To: btna <[EMAIL PROTECTED]>

[RESOLVED]Re: How to find version of a module

2008-06-23 Thread Ravi Malghan
nm. I was able to get the version by running perl -MDBD::Oracle -e 'print "$DBD::Oracle::VERSION\n"' Thanks - Original Message From: Ravi Malghan <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Monday, June 23, 2008 6:47:07 AM Subject: How to find version

How to find version of a module

2008-06-23 Thread Ravi Malghan
How do I find out the version of DBD:Oracle module that is installed with my perl? If I install another version, will it overwrite everything that is related to the older module? Thanks Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Out of memory! Callback called exit. END failed--call queue aborted

2008-06-22 Thread Ravi Malghan
Hi: I have a simple script which connects to a few databases. When I run the script I get the "Out of memory! Callback called exit. END failed--call queue aborted." error. It runs fine on other similar machines. Below is an example. As soon as I add the 3rd database connection it starts giving m

Regex help

2008-06-20 Thread Ravi Malghan
slow when this string gets large. TIA Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Including the carriage return in extraction

2008-06-16 Thread Ravi Malghan
Dr. Rudd: Thank you. That worked. I read up some docs on perlre. I know what .* does. But couldn't figure out what does .*? does. Can Someone explain what that ? does Also in the variant you suggested what does [^)] inside the paranthesis do? Thanks Ravi - Original Message From: Dr

Including the carriage return in extraction

2008-06-15 Thread Ravi Malghan
parenthesis? $OrigString = "REQUEST(SERVICE,1DJGHKDFJGHDFJGHKDFJH\nDFJHGDFJHGJDFHGJKDFHG\nHGJDFHGJKDFHGJKDFHGJKDFH);"; $OrigString =~ m/REQUEST\((.*)\);/; print "$1\n"; TIA Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Perl MQSeries API newbie help

2008-05-09 Thread Ravi Malghan
have not found any useful examples on the web. Can someone share a code ? Que Name: TRS.E0.CREATE.REMEDY1 Queue manager: SPBO021T MQ channel: REMEDY.CLIENT IP: spbo021t.xx.xx.xx Port: 1424 Thanks Ravi

Perl Expect help

2008-05-02 Thread Ravi Malghan
$exp->send("select Running from Service WHERE Name = 'CheckForRemedyTickets';\n"); exp_continue; } ], ); TIA Ravi Be a bet

Building/defining variables from an value in string

2008-04-22 Thread Ravi Malghan
the below statements $field1=10; $field2="abc"; TIA. Ravi Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

How to check integrity of a webpage from perl

2007-07-27 Thread Ravi Malghan
Hi: I am looking to build a script that can go to a webpage, login with a username/password, download a page, perform a checksum comparison. Two things I am trying to accomplish. 1. Is the website is up 2. Has the website been compromised. I found a number of pointers when I googled some string

Re: [RESOLVED]Unable to run perl script within cron

2007-06-20 Thread Ravi Malghan
I had to set the LD_LIBRARY_PATH in the cron as following 0,5,10,15,20,25,30,35,40,45,50,55 * * * * LD_LIBRARY_PATH=/export/home/netcool/oracle/instantclient_10_2:/usr/arsapi/lib:/usr/local/lib /exp ort/home/netcool/lookForNewRequests.pl - Original Message From: Ravi Malghan <[EM

Unable to run perl script within cron

2007-06-20 Thread Ravi Malghan
ing lines in my script at the beginning and the file libicudatabmc.so.32 is in /usr/arsapi/lib. $ENV{'LD_LIBRARY_PATH'} = '/export/home/netcool/oracle/instantclient_10_2:/usr/arsapi/lib:/usr/local/lib&#x

Help with compiling perl DBD using Oracle Instant client

2007-06-18 Thread Ravi Malghan
ts.txt for more information and some alternatives. at Makefile.PL line 1072. == The instant client does not have the .mk files this output talks about. I am able to run sqlplus that is in the instant client and connect to database. Could someone help. T

dynamic loading option?

2007-06-14 Thread Ravi Malghan
A module is requiring that my perl be compiled with dynamic loading. I have installed perl from a binary. How do I figure out if my perl has the dynamic loading option? bash-2.05$ perl -V Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=solaris, osver

Installing module for a user who doesn't own perl

2007-04-19 Thread Ravi Malghan
running make or make install is there a way to point a destination in my home directory? Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL

how to pass double quotes in a url from CGI script

2007-03-29 Thread Ravi Malghan
+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=\"1406746\""; print ''; --- How do I pass double quotes so the browser goes to http://appserver/arsys/forms/rearsp0

Re: help with array within another array

2007-02-27 Thread Ravi Malghan
what am I doing wrong here when trying to access the value john for node1 = $SESSION{FirstRun} = 1; %nodeowner = ("node1", "john", "node2", "nancy"); push(@SESSION, %nodeowner); print "node1: $SESSION{$nodeowner{node1}}\n"; == Th

Re: help with array within another array

2007-02-27 Thread Ravi Malghan
One correction: SESSION is just a single dimensional array @SESSION. Thanks Ravi --- Ravi Malghan <[EMAIL PROTECTED]> wrote: > Hi: I just can't seem to figure this out. > I am trying to declare two associative array > (%nodeowner and %nodeseverity) within another array > c

help with array within another array

2007-02-27 Thread Ravi Malghan
5, "node2", 10); How do I declare %SESSION containing %nodeowner and %nodeseverity. And how do I access say the value John give node1 from the nodeowner array that is in SESSION? TIA Ravi No

Re: Limit of number of files that can be opened in perl

2006-12-02 Thread Ravi Malghan
I am opening the files $AgentFH{$id} = *$name; open($AgentFH{$id}, ">>$filename"); I am speaking to the system admin if he can bump up the limit to 1024. Any other thoughts? TIA Ravi - Original Message From: Tom Phoenix <[EMAIL PROTECTED]> To: Ravi Malghan

Re: Limit of number of files that can be opened in perl

2006-12-01 Thread Ravi Malghan
29995 virtual memory (kbytes) unlimited Looks like I can open only 256 files. Anyway I can get around within perl without changing the actual limit on the operating system. Thanks Ravi - Original Message From: John W. Krahn <[EMAIL PROTECTED]> To: Perl Beginners Sent:

Limit of number of files that can be opened in perl

2006-12-01 Thread Ravi Malghan
I am expecting. If there is a limit, how do I work around it? Thanks Ravi Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL

How to create a string from value of another variable.

2006-11-29 Thread Ravi Malghan
\n"; I get the following error. bash-2.05$ ./test.1.pl Can't modify concatenation (.) or string in scalar assignment at ./test.1.pl line 14, near ""This is test\n";" Execution of ./test.1.pl aborted due to compilation errors. Anyone

Perl DBI Oracle: Multiple statements

2006-11-27 Thread Ravi Malghan
alter session set db_file_multiblock_read_count = 128; SELECT ED.utime, ED.info, ED.agent_id FROM EVENT_DATA ED WHERE ED.utime between 1164650400 and 1164653940 order by ED.utime; END; "] at /actuate/AcServer/reports_scripts/report_

How to check if a mount point exists.

2006-11-16 Thread Ravi Malghan
Hi: I writing some logs into a directory which is mounted. >df -k 199.11.255.50:/vol/rawdata 335544320 18471160 317073160 6%/actuate/rawdata > Is there a way to check within perl if the mount point exists before I write? Thanks ray -- To unsubscribe, e-mail: [EMA

Including code from a file into the main script if the file exists

2006-09-16 Thread Ravi Malghan
0/ or $token5 eq "cm:") { handleDetector5600($whole_event_string); $dropEvent = 0; } === Is there a different way to do this? Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Perl Programming -help please

2006-08-22 Thread ravi reddy
manipulating these type of records and get a one record . I hope i will get some suggestions, Thank you. regards, Ravi.

How to test result of an extraction?

2006-04-27 Thread Ravi Malghan
rcIP in my $complete_string instead of 0. $complete_event =~ /srcIp=(.+) srcPort=/; if($_) {$srcIp = $1;} else {$srcIp = 0;} Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail

Perl/Syslog: openlog is very slow in sending syslog message

2006-03-21 Thread Ravi Malghan
is long and also if there is a way to make it log immediately? If I run the logger command from the shell prompt, it logs immediately. TIA Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.co

Perl/Syslog: how to control the hostname in the syslog file?

2006-02-14 Thread Ravi Malghan
Hi: I have created a simple script to log syslog messages with the following lines openlog('lab-sensor', 'cons,ndelay,nowait','local7'); syslog('debug', 'this is a test message'); When I run this locally (local hostname: nms02), the following message shows up in the syslog file. Feb 14 16:50:37

[RESOLVED]Re: help with adding strings that are floating point numbers

2006-02-14 Thread Ravi Malghan
Thanks --- JeeBee <[EMAIL PROTECTED]> wrote: > > Just do $result = $var1 + $var2; > int returns the integer part of a number, > see: perldoc -f int > > JeeBee > > On Tue, 14 Feb 2006 07:04:18 -0800, Ravi Malghan > wrote: > > > Hi: I think this is ver

help with adding strings that are floating point numbers

2006-02-14 Thread Ravi Malghan
Hi: I think this is very trivial, but just can't seem to figure it out. I have two strings $var1 = "0.12" and $var2 = "0.3". I want to add these two and have 0.42 in $result, but $result = int($var1) + int($var2) always results to 0? What am I doing wrong. Thanks Ray ___

Recommendation for a XML Parser defined against a DTD?

2005-06-17 Thread Ravi Malghan
Hi: I have a bunch of xml files defined against a DTD. I want to parse them. I googled for perl XML reader modules and found lots of them. Anybody have used specific ones and have recommendations? Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo

help with perl/cgi creating a html code with pull down menu

2004-10-17 Thread Ravi Malghan
ipt creates a html page with the following html code = AlertKey: = Thanks Ravi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

problem with fork & wait

2004-03-29 Thread T.S. Ravi Shankar
lementation methodology for my purpose. Thanks, Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

collecting data from a TL1 devices

2004-03-17 Thread Ravi Malghan
Hi: has anybody built a perl scripts to receive data from multiple TL1 devices and process them? Is there a module? Or any other suggestions on how this can be done. Thanks Ravi __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http

upgrading perl to 5.6 from 5.005_03 question?

2004-02-02 Thread Ravi Malghan
Hello: I have perl 5.005_03 on solaris 2.8 which was installed with the OS. I would like to upgrade it to 5.6. Should I pkgrm the existing perl before I install the new perl ? or is there any other recommended way to upgrade. Thanks Ravi __ Do you Yahoo!? Yahoo

Re: Array creation with a existing variable

2004-01-24 Thread Ravi Malghan
} = I guess I could use @{$Counter{$routerN}} Thanks for the help. Ravi --- Wiggins d Anconia <[EMAIL PROTECTED]> wrote: > Please bottom post... > > > True. Since the value(s) for @Counter$router is > going > > to be array, manipulating that hash was making > things >

Re: Array creation with a existing variable

2004-01-23 Thread Ravi Malghan
I may have found the answer, I could use @{$Counter{$router}} . I will try this. Thanks Ravi --- Ravi Malghan <[EMAIL PROTECTED]> wrote: > True. Since the value(s) for @Counter$router is > going > to be array, manipulating that hash was making > things > complex for me.

Re: Array creation with a existing variable

2004-01-23 Thread Ravi Malghan
True. Since the value(s) for @Counter$router is going to be array, manipulating that hash was making things complex for me. If I use a hash (%Counter), what do I have to do such that the resulting value for $Counter{$router} is an array. Thanks Ravi --- Wiggins d Anconia <[EMAIL PROTEC

Array creation with a existing variable

2004-01-23 Thread Ravi Malghan
Hi: I have a existing variable called $router which is "192.168.1.1". I want to create a array which looks like @Counter192.168.1.1. @Counter.$router does not seem to work. Thanks in advance Ravi __ Do you Yahoo!? Yahoo! SiteBuilder - Free web sit

splitting a string

2003-12-10 Thread Ravi Malghan
Hi: I want to split the string 0.0.0.0.1.10.1.30.1.10.1.30.1 into 4 variables: 0.0.0.0, 1, 10.1.30.1 and 10.1.30.1 any suggestions? TIA ravi __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- To unsubscribe, e-mail

Re: Capturing system call output value

2003-11-15 Thread Ravi Malghan
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlfaq8/How_can_I_capture_STDERR_from_an_externa.html --- [EMAIL PROTECTED] wrote: > Can someone help me with capturing an output of a > system() call? > > ie ($a)=system("uname -n"); > > where $a would have the output value. > > thanks > > > --

copying a multidimensional array

2003-11-13 Thread Ravi Malghan
Hi: whatz the best way to copy an multidimensional array onto another. I have never used something like clone, just want to know whatz the easiest route. Thanks Ravi __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com

Accesing hash of hashes

2003-11-12 Thread Ravi Malghan
t} = $cost; print "$route on $NODE cost: $route{$NODE}{$routeDest}; == What am I doing wrong here? Thanks Ravi __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- To unsubscribe, e-mail: [

Re: Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
ce I was thinking of doing all "chdir"s inside the perl script with "system-cd"s ) Please let me know if you have any workarounds for this !! Thanks again, Ravi T.S. Ravi Shankar wrote: >Hi all : > >Could anyone tell me how I could move between the directories

Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
ill remains unchanged. If the above ways are incorrect, please direct me to the correct. Thanks, Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Urgent : Can I override #! defn. through any command line option??

2003-06-04 Thread T.S. Ravi Shankar
Hi David ... That answers all my questions !!! Thank you very much, Ravi "Geer, David van der" wrote: > Hi Ravi, > > The first line "#!" tells the program how te read the executable. > F.e. if you would change it into "#!/bin/ksh" it means your (

Re: Urgent : Can I override #! defn. through any command line option ??

2003-06-04 Thread T.S. Ravi Shankar
nd.pl line 1. Why ?? Thanks again, Ravi "Beau E. Cox" wrote: > - Original Message - > From: "T.S. Ravi Shankar" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, June 03, 2003 11:04 PM > Subj

Re: How to : Configuration / reuse of package in a different directory

2003-06-04 Thread T.S. Ravi Shankar
Hi Wang : Try this : sub BEGIN { push @INC, "mysandbox/blah"; # you can include any path here } use myPackage.pm / Ravi Wenjie Wang wrote: > Greetins, > > I'm try to use another perl module of mine in a different perl file in > different directory.

Urgent : Can I override #! defn. through any command line option ??

2003-06-04 Thread T.S. Ravi Shankar
means ?? Please advise. Thanks in advance Ravi Shankar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sorry about how simple this question is

2003-06-04 Thread T.S. Ravi Shankar
http://www.regenechsen.de/regex_en/regex_1_en.html http://www.cs.cf.ac.uk/Dave/PERL/perl_caller.html Good luck !! Regards Ravi klinsitik reckon wrote: > I am just starting to learn with perl. What software, > books, or web sites would be helpful to learning the > VERY basics of this new language.

What is this doing ??

2003-06-03 Thread T.S. Ravi Shankar
In what way "eval" help here in traping the errors ?? Where does $PERL_OPTIONS get value ?? Thank you very much, Ravi

beginners@perl.org

2003-04-01 Thread Ravi Malghan
Hi: I am using a statement currently as follows if(($node =~ /ma/) && ($node =~ /ny/)) Using the following statement does not seem to be giving expected results if($node =~ /(ma&&ny)/ where as: if(($node =~ /ma/) | ($node =~ /ny/)) is same as if($node =~ /(ma|ny

use of "?" operator instead of "if"

2003-04-01 Thread Ravi Malghan
Hi: I have this statement which checks for existence of the $VAL variable and performs certain actions if($VAL){ $VAL = "$VAL:$expr"; } else { $VAL = "$expr"; } Can this 4 line statement be reduced to a single line using "

question about || operator

2003-03-31 Thread Ravi Malghan
Hello: I seem to have forgotten Can this statement be shortened if(($node =~ /net/) || ($node =~ /gaat/)) The following does not give me the expected results if($node =~ (/net/ || /gaat/) ) TIA Ravi __ Do you Yahoo!? Yahoo! Platinum - Watch CBS

reply asap

2002-01-28 Thread lavanya ravi
guys I am writing a code in perl to fetch the auction numbers from a URL. I am also fetching some other details in three separate files. I have a main file that deals with these auction numbers, i have to call these three files into the main file and print out the details. eg: first file :

dbfuncs.pm

2002-01-05 Thread ravi
has any body used dbfuncs wrapper for dbi i have perl 5.6.1 , mysql 3.20 and dbi and dbfuncs installed i could connect to mysql using dbi directly but dbfuncs i troubling me... with the below erro Mysql::DESTROY: Not defined in Mysql and not autoloadable (last try destroy) at /usr/local/lib/perl

RE: Perform a tar command on a directory

2001-08-23 Thread Sekhar, Ravi
ve pathnames for the files print "Tar-ing file into Source dir ..$source_dir\n"; system("/usr/bin/tar -cvf $dir_name.tar ./$dir_name"); - Ravi -Original Message- From: Baartmans, Hans [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:22 AM To:

$ENV and print question

2001-07-19 Thread Sekhar, Ravi
Hi all, I am trying to do two basic things in my PERL script: 1) Read in the values of two environment variables 2) Print the values of scalars and environment variables I do not understand the errors that were generated when I compiled the following script. Any help in understanding what I ma

Net:FTP, Net::Cmd

2001-07-19 Thread Ravi Channavajhala
"; $ftp->quit(); I have no luck making the $ftp->command stuff to work. I'm using solaris 5.8 ftp client. Anyway, I can make this work? Native Solaris ftp client/server can not support "quot site" stuff. Am I out of luck?? Please dont offer suggestions to use "Net

Hash with multiple values per key

2001-05-30 Thread Ravi Channavajhala
e c4 and c5 as the values different from instance "1" to instance "2". -ravi

Hash with multiple values per key

2001-05-30 Thread Ravi Channavajhala
e c4 and c5 as the values different from instance "1" to instance "2". -ravi